Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update resources files and test #1659

Merged
merged 1 commit into from
Jun 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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