Skip to content

Commit 65651d9

Browse files
committed
Ported Controllers.ActionResults.Test package (#326)
1 parent fb2fc26 commit 65651d9

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/BadRequestTests/BadRequestTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
387387
.Calling(c => c.FullHttpBadRequestAction())
388388
.ShouldReturn()
389389
.BadRequest(badRequest => badRequest
390-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
390+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
391391
}
392392

393393
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/CreatedTests/CreatedTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
800800
.Calling(c => c.FullCreatedAction())
801801
.ShouldReturn()
802802
.Created(created => created
803-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
803+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
804804
}
805805

806806
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/NotFoundTests/NotFoundTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
306306
.Calling(c => c.FullHttpNotFoundAction())
307307
.ShouldReturn()
308308
.NotFound(notFound => notFound
309-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
309+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
310310
}
311311

312312
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/ObjectTests/ObjectTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
304304
.Calling(c => c.FullObjectResultAction())
305305
.ShouldReturn()
306306
.Object(result => result
307-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
307+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
308308
}
309309

310310
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/OkTests/OkTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
306306
.Calling(c => c.FullOkAction())
307307
.ShouldReturn()
308308
.Ok(ok => ok
309-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
309+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
310310
}
311311

312312
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/StatusCodeTests/StatusCodeTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void ContainingOutputFormatterOfTypeShouldNotThrowExceptionWithCorrectVal
268268
.Calling(c => c.FullObjectResultAction())
269269
.ShouldReturn()
270270
.StatusCode(result => result
271-
.ContainingOutputFormatterOfType<JsonOutputFormatter>());
271+
.ContainingOutputFormatterOfType<NewtonsoftJsonOutputFormatter>());
272272
}
273273

274274
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
66
<AssemblyName>MyTested.AspNetCore.Mvc.Test</AssemblyName>
77
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
3+
using Microsoft.AspNetCore.Mvc.ApplicationParts;
34
using Xunit;
45

6+
[assembly: ApplicationPart("MyTested.AspNetCore.Mvc.Test.Setups")]
7+
58
[assembly: AssemblyProduct("MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test")]
69
[assembly: ComVisible(false)]
710

0 commit comments

Comments
 (0)