mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-20 16:23:42 +01:00
35 lines
742 B
C#
35 lines
742 B
C#
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");
|
|
}
|
|
}
|
|
} |