mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-16 23:26:52 +01:00
* Add TIOBE + include SonarAnalyzer.CSharp * . * cp * Copyright © WireMock.Net * more fixes * fix * xpath * if (Matchers == null || !Matchers.Any()) * if (Matchers != null) * ? * . * .
23 lines
785 B
C#
23 lines
785 B
C#
// Copyright © WireMock.Net
|
|
|
|
using WireMock.Server;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace WireMock.FluentAssertions
|
|
{
|
|
/// <summary>
|
|
/// Contains extension methods for custom assertions in unit tests.
|
|
/// </summary>
|
|
public static class WireMockExtensions
|
|
{
|
|
/// <summary>
|
|
/// Returns a <see cref="WireMockReceivedAssertions"/> object that can be used to assert the current <see cref="IWireMockServer"/>.
|
|
/// </summary>
|
|
/// <param name="instance">The WireMockServer</param>
|
|
/// <returns><see cref="WireMockReceivedAssertions"/></returns>
|
|
public static WireMockReceivedAssertions Should(this IWireMockServer instance)
|
|
{
|
|
return new WireMockReceivedAssertions(instance);
|
|
}
|
|
}
|
|
} |