assertion, TAsserted subject)
+ {
+ //using var collectionScope = new AssertionScope();
+ //string[] assertionFailures;
+ //using (var itemScope = new AssertionScope())
+ //{
+ // try
+ // {
+ // assertion(subject);
+ // assertionFailures = itemScope.Discard();
+ // }
+ // catch (Exception ex)
+ // {
+ // assertionFailures = new[] { $"Expected to successfully verify an assertion, but the following exception occurred: {ex}" };
+ // }
+
+ //}
+
+ //foreach (var assertionFailure in assertionFailures)
+ //{
+ // collectionScope.AddPreFormattedFailure($"{assertionFailure}");
+ //}
+
+ //return collectionScope.Discard();
+ return new string[] { };
+ }
+ }
+}
diff --git a/src/Shouldly.Web/Shouldly.Web.csproj b/src/Shouldly.Web/Shouldly.Web.csproj
new file mode 100644
index 0000000..addb976
--- /dev/null
+++ b/src/Shouldly.Web/Shouldly.Web.csproj
@@ -0,0 +1,18 @@
+
+
+
+
+ This is a Shouldy extension over the HttpResponseMessage object. It provides assertions specific to HTTP responses and outputs rich erros messages when the tests fail, so less time with debugging is spent.
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Shouldly.Web/ShouldlyWebConfig.cs b/src/Shouldly.Web/ShouldlyWebConfig.cs
new file mode 100644
index 0000000..7baad89
--- /dev/null
+++ b/src/Shouldly.Web/ShouldlyWebConfig.cs
@@ -0,0 +1,21 @@
+namespace FluentAssertions;
+
+///
+/// Holder of the global
+///
+public static class ShouldlyWebConfig
+{
+ private static ISerializer? _serializer;
+
+ static ShouldlyWebConfig() => Serializer = new SystemTextJsonSerializer();
+
+ ///
+ /// The serializer instance used to deserialize the responses into a model of a specified typed
+ ///
+ public static ISerializer Serializer
+ {
+ get => _serializer ?? throw new InvalidOperationException("Serializer cannot be null");
+
+ set => _serializer = value ?? throw new ArgumentNullException(nameof(value), "Serializer cannot be null.");
+ }
+}
diff --git a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/FluentAssertions.Web.FluentAssertionsWebConfig.Tests.csproj b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/FluentAssertions.Web.FluentAssertionsWebConfig.Tests.csproj
index 3874c34..2677925 100644
--- a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/FluentAssertions.Web.FluentAssertionsWebConfig.Tests.csproj
+++ b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/FluentAssertions.Web.FluentAssertionsWebConfig.Tests.csproj
@@ -5,7 +5,6 @@
-
diff --git a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/GlobalUsings.cs b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/GlobalUsings.cs
index 94d5252..40cf973 100644
--- a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/GlobalUsings.cs
+++ b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/GlobalUsings.cs
@@ -1,2 +1,3 @@
-global using System;
+global using Ited.HttpFormatter;
+global using System;
global using Xunit;
diff --git a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/Serializers/SystemTextJsonSerializerTests.cs b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/Serializers/SystemTextJsonSerializerTests.cs
index 29a3cba..6df6c95 100644
--- a/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/Serializers/SystemTextJsonSerializerTests.cs
+++ b/test/FluentAssertions.Web.FluentAssertionsWebConfig.Tests/Serializers/SystemTextJsonSerializerTests.cs
@@ -1,6 +1,4 @@
-using FluentAssertions.Web.Internal.Serializers;
-
-namespace FluentAssertions.Web.FluentAssertionsWebConfig.Tests.Serializers;
+namespace FluentAssertions.Web.FluentAssertionsWebConfig.Tests.Serializers;
[Collection("Serializers Tests")]
public class SystemTextJsonSerializerTests
diff --git a/test/FluentAssertions.Web.Tests/FluentAssertions.Web.Tests.csproj b/test/FluentAssertions.Web.Tests/FluentAssertions.Web.Tests.csproj
index a5dc9c4..181a941 100644
--- a/test/FluentAssertions.Web.Tests/FluentAssertions.Web.Tests.csproj
+++ b/test/FluentAssertions.Web.Tests/FluentAssertions.Web.Tests.csproj
@@ -5,7 +5,6 @@
-
diff --git a/test/FluentAssertions.Web.Tests/GlobalUsings.cs b/test/FluentAssertions.Web.Tests/GlobalUsings.cs
index f38e0f4..b1e4f61 100644
--- a/test/FluentAssertions.Web.Tests/GlobalUsings.cs
+++ b/test/FluentAssertions.Web.Tests/GlobalUsings.cs
@@ -1,7 +1,6 @@
-global using FluentAssertions.Equivalency;
+global using Ited.HttpFormatter;
+global using FluentAssertions.Equivalency;
global using FluentAssertions.Execution;
-global using FluentAssertions.Web.Internal;
-global using FluentAssertions.Web.Internal.Serializers;
global using System;
global using System.Collections.Generic;
global using System.IO;
@@ -10,7 +9,6 @@
global using System.Net.Http.Headers;
global using System.Net.Http;
global using System.Text;
-global using System.Text.Json;
global using System.Threading.Tasks;
global using Xunit;
global using Xunit.Sdk;
diff --git a/test/FluentAssertions.Web.v8.Tests/FluentAssertions.Web.v8.Tests.csproj b/test/FluentAssertions.Web.v8.Tests/FluentAssertions.Web.v8.Tests.csproj
index 7559fe8..e0acd05 100644
--- a/test/FluentAssertions.Web.v8.Tests/FluentAssertions.Web.v8.Tests.csproj
+++ b/test/FluentAssertions.Web.v8.Tests/FluentAssertions.Web.v8.Tests.csproj
@@ -9,7 +9,6 @@
-
diff --git a/test/Ited.HttpFormatter.Tests/GlobalUsings.cs b/test/Ited.HttpFormatter.Tests/GlobalUsings.cs
new file mode 100644
index 0000000..1126d62
--- /dev/null
+++ b/test/Ited.HttpFormatter.Tests/GlobalUsings.cs
@@ -0,0 +1,13 @@
+global using FluentAssertions;
+global using Ited.HttpFormatter.Internal;
+global using Ited.HttpFormatter.Internal.ContentProcessors;
+global using System.Collections.Generic;
+global using System.IO;
+global using System.Linq;
+global using System.Net;
+global using System.Net.Http.Headers;
+global using System.Net.Http;
+global using System.Text;
+global using System.Text.Json;
+global using System.Threading.Tasks;
+global using Xunit;
\ No newline at end of file
diff --git a/test/FluentAssertions.Web.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs b/test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs
similarity index 96%
rename from test/FluentAssertions.Web.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs
rename to test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs
index c485074..03a58ea 100644
--- a/test/FluentAssertions.Web.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs
+++ b/test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/FallbackProcessorTests.cs
@@ -1,6 +1,4 @@
-using FluentAssertions.Web.Internal.ContentProcessors;
-
-namespace FluentAssertions.Web.Tests.Internal.ContentProcessors;
+namespace Ited.HttpFormatter.Tests.Internal.ContentProcessors;
public class FallbackProcessorTests
{
diff --git a/test/FluentAssertions.Web.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs b/test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs
similarity index 95%
rename from test/FluentAssertions.Web.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs
rename to test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs
index f82af85..de2afbb 100644
--- a/test/FluentAssertions.Web.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs
+++ b/test/Ited.HttpFormatter.Tests/Internal/ContentProcessors/InternalServerErrorProcessorTests.cs
@@ -1,6 +1,4 @@
-using FluentAssertions.Web.Internal.ContentProcessors;
-
-namespace FluentAssertions.Web.Tests.Internal.ContentProcessors;
+namespace Ited.HttpFormatter.Tests.Internal.ContentProcessors;
public class InternalServerErrorProcessorTests
{
@@ -313,7 +311,7 @@ .page .length {
An unhandled exception occurred while processing the request.
Exception: Wow!
- Sample.Api.Tests.CustomStartupConfigurationsTests+<>c.<GetException_WhenDeveloperPageIsConfigured_ShouldBeInternalServerError>b__0_2(HttpContext context, Func<Task> next) in CustomStartupConfigurationsTests.cs
, line 26
+ Sample.Api.Tests.CustomStartupConfigurationsTests+<>c.<GetException_WhenDeveloperPageIsConfigured_ShouldBeInternalServerError>b__0_2(HttpContext context, Func<Task> next) in CustomStartupConfigurationsTests.cs
, line 26