32 references to ShouldBe
Microsoft.Build.Utilities.UnitTests (32)
CommandLineBuilder_Tests.cs (32)
30c.ShouldBe("/a -b");
43c.ShouldBe("/animal:dog");
56c.ShouldBe("/animal:\"dog and pony\"");
69c.ShouldBe("/i:iI");
85c.ShouldBe("/animal:\"dog and pony\"");
98c.ShouldBe("/animal:dog and pony");
114c.ShouldBe(FileUtilities.FixFilePath(@"Form1.resx,built\Form1.resources"));
129c.ShouldBe(@"Mercury.cs Venus.cs Earth.cs");
144c.ShouldBe($".{Path.DirectorySeparatorChar}-Mercury.cs .{Path.DirectorySeparatorChar}-Venus.cs .{Path.DirectorySeparatorChar}-Earth.cs");
157c.ShouldBe($".{Path.DirectorySeparatorChar}-Mercury.cs Venus.cs .{Path.DirectorySeparatorChar}-Earth.cs");
172c.ShouldBe("");
187c.ShouldBe("");
201c.ShouldBe("/something /switch:\"Mer cury.cs\",\"Ve nus.cs\",\"Ear th.cs\"");
215c.ShouldBe("/something /switch:\"Mer cury.cs\",,\"Ve nus.cs\",\"Ear th.cs\"");
229c.ShouldBe("/something /switch:Mer cury.cs,Ve nus.cs,Ear th.cs");
243c.ShouldBe("/something /switch:Mer cury.cs,,Ve nus.cs,Ear th.cs");
259c.ShouldBe($"/something .{Path.DirectorySeparatorChar}-Mercury.cs Mercury.cs \"Mer cury.cs\"");
275c.ShouldBe($"/something .{Path.DirectorySeparatorChar}-Mercury.cs Mercury.cs \"Mer cury.cs\"");
290c.ShouldBe("\"string with \\\"quotes\\\"\"");
301c.ShouldBe("/D\"LSYSTEM_COMPATIBLE_ASSEMBLY_NAME=L\\\"Microsoft.Windows.SystemCompatible\\\"\"");
312c.ShouldBe(@"/D""ASSEMBLY_KEY_FILE=\""c:\\foo\\FinalKeyFile.snk\""""");
323c.ShouldBe(@"/D""\""A B\"" and \""C\""""");
334c.ShouldBe(@"/D""A \B""");
345c.ShouldBe(@"/D""A\"" \\\""B""");
356c.ShouldBe(@"/DA"" \""B");
368c.ShouldBe(@"/D""A B\\""");
379c.ShouldBe(@"/DAB\");
390c.ShouldBe(@"/Dfoo-bar");
401c.ShouldBe(@"/D""foo-bar""");
412c.ShouldBe(@"/D""foo-bar""");
423c.ShouldBe(@"/Dfoo-bar");
437c.ShouldBe(@"/D""A='\""'"""); // /D"A='\"'"