mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:14:23 +01:00
* feat(awesome-assertions): Added new project WireMock.Net.AwesomeAssertions * feat(awesome-assertions): Applied dotnet naming convention for private readonly fields --------- Co-authored-by: Francesco Venturoli <f.venturoli@crif.com>
23 lines
815 B
C#
23 lines
815 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, AssertionChain.GetOrCreate());
|
|
}
|
|
}
|
|
} |