mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 09:18:27 +02:00
Add some more tests
This commit is contained in:
35
test/WireMock.Net.Tests/Matchers/XPathMatcherTests.cs
Normal file
35
test/WireMock.Net.Tests/Matchers/XPathMatcherTests.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using NFluent;
|
||||
using WireMock.Matchers;
|
||||
using Xunit;
|
||||
|
||||
namespace WireMock.Net.Tests.Matchers
|
||||
{
|
||||
public class XPathMatcherTests
|
||||
{
|
||||
[Fact]
|
||||
public void XPathMatcher_GetName()
|
||||
{
|
||||
// Assign
|
||||
var matcher = new XPathMatcher("X");
|
||||
|
||||
// Act
|
||||
string name = matcher.GetName();
|
||||
|
||||
// Assert
|
||||
Check.That(name).Equals("XPathMatcher");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void XPathMatcher_GetPatterns()
|
||||
{
|
||||
// Assign
|
||||
var matcher = new XPathMatcher("X");
|
||||
|
||||
// Act
|
||||
string[] patterns = matcher.GetPatterns();
|
||||
|
||||
// Assert
|
||||
Check.That(patterns).ContainsExactly("X");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user