Skip to content

Commit

Permalink
move test case from OrFilterTests to InFilterTests
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Mar 6, 2022
1 parent 65727e0 commit de83329
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions src/NUnitFramework/tests/Internal/Filters/InFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,16 @@ public void OptimizeSomeRegex()

Assert.False(InFilter.TryOptimize(filter, out _));
}

[Test]
public void BuildFromXmlFullName()
{
TestFilter filter = TestFilter.FromXml(
$"<filter><or><test>{DUMMY_CLASS}</test><test>{ANOTHER_CLASS}</test></or></filter>");

Assert.That(filter, Is.TypeOf<InFilter>());
Assert.That(filter.Match(_dummyFixture));
Assert.That(filter.Match(_anotherFixture));
}
}
}
11 changes: 0 additions & 11 deletions src/NUnitFramework/tests/Internal/Filters/OrFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,6 @@ public void BuildFromXml()
Assert.That(filter.Match(_anotherFixture));
}

[Test]
public void BuildFromXmlFullName()
{
TestFilter filter = TestFilter.FromXml(
$"<filter><or><test>{DUMMY_CLASS}</test><test>{ANOTHER_CLASS}</test></or></filter>");

Assert.That(filter, Is.TypeOf<InFilter>());
Assert.That(filter.Match(_dummyFixture));
Assert.That(filter.Match(_anotherFixture));
}

[Test]
public void BuildFromXmlFullNameRegex()
{
Expand Down

0 comments on commit de83329

Please sign in to comment.