Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
csoltenborn committed Jun 28, 2018
1 parent a683682 commit 6e73471
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions GoogleTestAdapter/Core.Tests/TestCases/TestCaseResolverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,19 @@ public void FindTestCaseLocation_Namespace_Anon_Named_LocationIsFound()

private void AssertCorrectTestLocationIsFound(string suite, uint line)
{
var descriptor = new TestCaseDescriptor(
suite,
"Test",
$"{suite}.Test",
$"{suite}.Test",
TestCaseDescriptor.TestTypes.Simple);
var signatures = new MethodSignatureCreator().GetTestMethodSignatures(descriptor);
var resolver = new TestCaseResolver(TestResources.Tests_ReleaseX64, "", "".Yield(),
new DefaultDiaResolverFactory(), true, _fakeLogger);
var signatureCreator = new MethodSignatureCreator();
var descriptor = new TestCaseDescriptor(suite, "Test", $"{suite}.Test", $"{suite}.Test",
TestCaseDescriptor.TestTypes.Simple);
var signatures = signatureCreator.GetTestMethodSignatures(descriptor);

var testCaseLocation = resolver.FindTestCaseLocation(signatures.ToList());

_fakeLogger.Errors.Should().BeEmpty();

testCaseLocation.Should().NotBeNull();
testCaseLocation.Sourcefile.Should().EndWithEquivalent(@"sampletests\tests\namespacetests.cpp");
testCaseLocation.Line.Should().Be(line);
Expand Down

0 comments on commit 6e73471

Please sign in to comment.