Skip to content

Commit

Permalink
Change assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Jun 8, 2020
1 parent b60cf6f commit 1fbf4a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/vstest.console.UnitTests/ExecutorUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ public void ExecutorPrintsSplashScreenTest()
Assert.IsNotNull(mockOutput.Messages.First().Message, "First Printed Message cannot be null or empty");

// Just check first 20 characters - don't need to check whole thing as assembly version is variable
Assert.IsTrue(
mockOutput.Messages.First()
.Message.Contains(CommandLineResources.MicrosoftCommandLineTitle.Substring(0, 20)),
"First Printed message must be Microsoft Copyright");

// "First Printed message must be Microsoft Copyright");
StringAssert.Contains(mockOutput.Messages.First()
.Message, CommandLineResources.MicrosoftCommandLineTitle.Substring(0, 20));

Assert.IsTrue(mockOutput.Messages.First().Message.EndsWith(assemblyVersion));
}

Expand Down

0 comments on commit 1fbf4a3

Please # to comment.