public void ParseStorageConnection() { AzureArgumentsParser parser = new AzureArgumentsParser(); var parsed = parser.ParseArguments(@"$sc(DefaultConnectionString)"); Assert.AreEqual<string>(@"DefaultEndpointsProtocol=https;AccountName=poopypants;AccountKey=SomeKey", parsed); }
public void ParseMultiplePrefixes() { var parser = new AzureArgumentsParser(); var actual = parser.ParseArguments(@"-lr $lr(temp) -run $lr(temp)\file.exe"); Assert.AreEqual<string>(@"-lr C:\Resources\Temp -run C:\Resources\Temp\file.exe", actual); }
public void ParseLocalResource() { AzureArgumentsParser parser = new AzureArgumentsParser(); var parsed = parser.ParseArguments(@"$lr(temp)\somefile.txt"); Assert.AreEqual<string>(@"C:\Resources\Temp\somefile.txt", parsed); }
public void DoNotExpandUnknownPrefixes() { var parser = new AzureArgumentsParser(); var actual = parser.ParseArguments(@"-switch $tdd(cumulux)"); Assert.AreEqual<string>(@"-switch $tdd(cumulux)", actual); }
public void ParseConfig() { var parser = new AzureArgumentsParser(); var actual = parser.ParseArguments(@"$config(foo.installContainer)"); var expected = "container"; Assert.AreEqual<string>(expected, actual); }