32 references to ShouldBe
Microsoft.Build.Utilities.UnitTests (32)
CommandLineBuilder_Tests.cs (32)
31c.ShouldBe("/a -b"); 44c.ShouldBe("/animal:dog"); 57c.ShouldBe("/animal:\"dog and pony\""); 70c.ShouldBe("/i:iI"); 86c.ShouldBe("/animal:\"dog and pony\""); 99c.ShouldBe("/animal:dog and pony"); 115c.ShouldBe(FileUtilities.FixFilePath(@"Form1.resx,built\Form1.resources")); 130c.ShouldBe(@"Mercury.cs Venus.cs Earth.cs"); 145c.ShouldBe($".{Path.DirectorySeparatorChar}-Mercury.cs .{Path.DirectorySeparatorChar}-Venus.cs .{Path.DirectorySeparatorChar}-Earth.cs"); 158c.ShouldBe($".{Path.DirectorySeparatorChar}-Mercury.cs Venus.cs .{Path.DirectorySeparatorChar}-Earth.cs"); 173c.ShouldBe(""); 188c.ShouldBe(""); 202c.ShouldBe("/something /switch:\"Mer cury.cs\",\"Ve nus.cs\",\"Ear th.cs\""); 216c.ShouldBe("/something /switch:\"Mer cury.cs\",,\"Ve nus.cs\",\"Ear th.cs\""); 230c.ShouldBe("/something /switch:Mer cury.cs,Ve nus.cs,Ear th.cs"); 244c.ShouldBe("/something /switch:Mer cury.cs,,Ve nus.cs,Ear th.cs"); 260c.ShouldBe($"/something .{Path.DirectorySeparatorChar}-Mercury.cs Mercury.cs \"Mer cury.cs\""); 276c.ShouldBe($"/something .{Path.DirectorySeparatorChar}-Mercury.cs Mercury.cs \"Mer cury.cs\""); 291c.ShouldBe("\"string with \\\"quotes\\\"\""); 302c.ShouldBe("/D\"LSYSTEM_COMPATIBLE_ASSEMBLY_NAME=L\\\"Microsoft.Windows.SystemCompatible\\\"\""); 313c.ShouldBe(@"/D""ASSEMBLY_KEY_FILE=\""c:\\foo\\FinalKeyFile.snk\"""""); 324c.ShouldBe(@"/D""\""A B\"" and \""C\"""""); 335c.ShouldBe(@"/D""A \B"""); 346c.ShouldBe(@"/D""A\"" \\\""B"""); 357c.ShouldBe(@"/DA"" \""B"); 369c.ShouldBe(@"/D""A B\\"""); 380c.ShouldBe(@"/DAB\"); 391c.ShouldBe(@"/Dfoo-bar"); 402c.ShouldBe(@"/D""foo-bar"""); 413c.ShouldBe(@"/D""foo-bar"""); 424c.ShouldBe(@"/Dfoo-bar"); 438c.ShouldBe(@"/D""A='\""'"""); // /D"A='\"'"