Skip to content

Commit

Permalink
Update resources files and test (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
smadala authored Jun 25, 2018
1 parent e0caba4 commit 0905742
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 22 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@
<value>Adapter lookup is being changed, please follow https://github.com/Microsoft/vstest-docs/blob/master/RFCs/0022-User-Specified-TestAdapter-Lookup.md#roadmap for more details.</value>
</data>
<data name="NoTestsAvailableForGivenTestCaseFilter" xml:space="preserve">
<value>No test is available for testcase filter `{0}` in {1}</value>
<value>No test matches the given testcase filter `{0}` in {1}</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<note></note>
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<note />
</trans-unit>
<trans-unit id="NoTestsAvailableForGivenTestCaseFilter">
<source>No test is available for testcase filter `{0}` in {1}</source>
<source>No test matches the given testcase filter `{0}` in {1}</source>
<target state="new">No test is available for testcase filter `{0}` in {1}</target>
<note></note>
</trans-unit>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void DiscoverTestsShouldShowProperWarningIfNoTestsOnTestCaseFilter(Runner
arguments = string.Concat(arguments, " /logger:\"console;prefix=true\"");
this.InvokeVsTest(arguments);

StringAssert.Contains(this.StdOut, "Warning: No test is available for testcase filter `NonExistTestCaseName` in");
StringAssert.Contains(this.StdOut, "Warning: No test matches the given testcase filter `NonExistTestCaseName` in");

StringAssert.Contains(this.StdOut, "SimpleTestProject2.dll");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void RunTestsShouldShowProperWarningOnNoTestsForTestCaseFilter(RunnerInfo
var expectedFilter = veryLongTestCaseFilter.Substring(0, 256) + "...";

// Assert
StringAssert.StartsWith(this.runEventHandler.LogMessage, $"No test is available for testcase filter `{expectedFilter}` in");
StringAssert.StartsWith(this.runEventHandler.LogMessage, $"No test matches the given testcase filter `{expectedFilter}` in");
StringAssert.EndsWith(this.runEventHandler.LogMessage, testAssemblyName);

Assert.AreEqual(TestMessageLevel.Warning , this.runEventHandler.TestMessageLevel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public void LoadTestsShouldLogWarningMessageOnNoTestsInAssembliesWithTestCaseFil
this.discovererEnumerator.LoadTests(extensionSourceMap, this.runSettingsMock.Object, testCaseFilter, this.messageLoggerMock.Object);

var expectedMessage =
$"No test is available for testcase filter `{testCaseFilter}` in {sourcesString}";
$"No test matches the given testcase filter `{testCaseFilter}` in {sourcesString}";

this.messageLoggerMock.Verify(l => l.SendMessage(TestMessageLevel.Warning, expectedMessage));
}
Expand All @@ -515,7 +515,7 @@ public void LoadTestsShouldShortenTheLongTestCaseFilterWhenNoTestsDiscovered()

var expectedTestCaseFilter = veryLengthyTestCaseFilter.Substring(0, 256) + "...";
var expectedMessage =
$"No test is available for testcase filter `{expectedTestCaseFilter}` in {sourcesString}";
$"No test matches the given testcase filter `{expectedTestCaseFilter}` in {sourcesString}";

this.messageLoggerMock.Verify(l => l.SendMessage(TestMessageLevel.Warning, expectedMessage));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void RunTestsShouldLogWarningOnNoTestsAvailableInAssemblyWithTestCaseFilt
this.runTestsInstance.RunTests();

var expectedMessage =
$"No test is available for testcase filter `{testCaseFilter}` in {sourcesString}";
$"No test matches the given testcase filter `{testCaseFilter}` in {sourcesString}";
this.mockTestRunEventsHandler.Verify(treh => treh.HandleLogMessage(TestMessageLevel.Warning, expectedMessage), Times.Once);
}

Expand All @@ -249,7 +249,7 @@ public void RunTestsShouldLogWarningOnNoTestsAvailableInAssemblyWithLongTestCase
var expectedTestCaseFilter = veryLengthyTestCaseFilter.Substring(0, 256)+ "...";

var expectedMessage =
$"No test is available for testcase filter `{expectedTestCaseFilter}` in {sourcesString}";
$"No test matches the given testcase filter `{expectedTestCaseFilter}` in {sourcesString}";
this.mockTestRunEventsHandler.Verify(treh => treh.HandleLogMessage(TestMessageLevel.Warning, expectedMessage), Times.Once);
}

Expand Down

0 comments on commit 0905742

Please sign in to comment.