From 32026e59c080bad3423ddbd522e6a892513828b7 Mon Sep 17 00:00:00 2001 From: Federico Paolillo <31439756+federico-paolillo@users.noreply.github.com> Date: Sat, 9 Nov 2019 12:06:00 +0100 Subject: [PATCH] Use Path.Separator in environment variables tests (#31) --- CliFx.Tests/Services/CommandInitializerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CliFx.Tests/Services/CommandInitializerTests.cs b/CliFx.Tests/Services/CommandInitializerTests.cs index 354883a..ad9df93 100644 --- a/CliFx.Tests/Services/CommandInitializerTests.cs +++ b/CliFx.Tests/Services/CommandInitializerTests.cs @@ -8,6 +8,7 @@ using CliFx.Models; using CliFx.Services; using CliFx.Tests.TestCommands; using CliFx.Tests.Stubs; +using System.IO; namespace CliFx.Tests.Services { @@ -106,7 +107,7 @@ namespace CliFx.Tests.Services new EnvironmentVariableWithoutCollectionPropertyCommand(), GetCommandSchema(typeof(EnvironmentVariableWithoutCollectionPropertyCommand)), new CommandInput(null, new CommandOptionInput[0], EnvironmentVariablesProviderStub.EnvironmentVariables), - new EnvironmentVariableWithoutCollectionPropertyCommand { Option = "A;B;C;" } + new EnvironmentVariableWithoutCollectionPropertyCommand { Option = $"A{Path.PathSeparator}B{Path.PathSeparator}C{Path.PathSeparator}" } ); }