3 references to Json
Microsoft.AspNetCore.Http.Results.Tests (3)
ResultsTests.cs (3)
998var result = Results.Json(null, typeof(string), StringJsonContext.Default) as JsonHttpResult<object>; 1045Assert.Throws<ArgumentNullException>("context", () => Results.Json(null, type: typeof(object), context: null)); 1051var ex = Assert.Throws<InvalidOperationException>(() => Results.Json(null, type: typeof(Todo), context: StringJsonContext.Default));