remove nfluent

This commit is contained in:
Stef Heyenrath
2026-02-26 22:02:54 +01:00
parent c4c8ad3fa9
commit 62d0b0db5b
142 changed files with 899 additions and 1020 deletions

View File

@@ -2,7 +2,6 @@
using System.Diagnostics;
using System.Net.WebSockets;
using AwesomeAssertions;
using Moq;
using WireMock.Logging;
using WireMock.Matchers.Request;

View File

@@ -2,7 +2,6 @@
using Microsoft.AspNetCore.Http;
using Moq;
using NFluent;
using WireMock.Owin;
using WireMock.Owin.Mappers;
@@ -31,6 +30,7 @@ public class GlobalExceptionMiddlewareTests
public void GlobalExceptionMiddleware_Invoke_NullAsNext_DoesNotInvokeNextAndDoesNotThrow()
{
// Act
Check.ThatCode(() => _sut.Invoke(null)).DoesNotThrow();
Action act = () => _sut.Invoke(null);
act.Should().NotThrow();
}
}

View File

@@ -1,7 +1,6 @@
// Copyright © WireMock.Net
using System.Diagnostics.CodeAnalysis;
using AwesomeAssertions;
using WireMock.Owin;
using WireMock.Types;

View File

@@ -1,23 +1,14 @@
// Copyright © WireMock.Net
using Moq;
using AwesomeAssertions;
using WireMock.Handlers;
using WireMock.Owin.Mappers;
using WireMock.ResponseBuilders;
using WireMock.Types;
using WireMock.Util;
using WireMock.Owin;
#if NET452
using Microsoft.Owin;
using IResponse = Microsoft.Owin.IOwinResponse;
// using Response = Microsoft.Owin.OwinResponse;
#else
using Microsoft.AspNetCore.Http;
using IResponse = Microsoft.AspNetCore.Http.HttpResponse;
// using Response = Microsoft.AspNetCore.Http.HttpResponse;
using Microsoft.Extensions.Primitives;
#endif
namespace WireMock.Net.Tests.Owin.Mappers;
@@ -25,7 +16,7 @@ public class OwinResponseMapperTests
{
private static readonly Task CompletedTask = Task.FromResult(true);
private readonly OwinResponseMapper _sut;
private readonly Mock<IResponse> _responseMock;
private readonly Mock<HttpResponse> _responseMock;
private readonly Mock<Stream> _stream;
private readonly Mock<IHeaderDictionary> _headers;
private readonly Mock<IFileSystemHandler> _fileSystemHandlerMock;
@@ -52,7 +43,7 @@ public class OwinResponseMapperTests
_headers.Setup(h => h.Add(It.IsAny<string>(), It.IsAny<StringValues>()));
#endif
_responseMock = new Mock<IResponse>();
_responseMock = new Mock<HttpResponse>();
_responseMock.SetupAllProperties();
_responseMock.SetupGet(r => r.Body).Returns(_stream.Object);
_responseMock.SetupGet(r => r.Headers).Returns(_headers.Object);

View File

@@ -1,7 +1,6 @@
// Copyright © WireMock.Net
using System.Collections.Concurrent;
using AwesomeAssertions;
using Moq;
using WireMock.Logging;
using WireMock.Matchers.Request;

View File

@@ -3,7 +3,6 @@
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq.Expressions;
using AwesomeAssertions;
using Microsoft.AspNetCore.Http;
using Moq;
using WireMock.Admin.Mappings;