blob: a70c66e334ab9880e02f91f8526849d5c36fde1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Http;
using Xunit;
namespace Microsoft.AspNetCore.Mvc
{
public class HttpNotFoundResultTests
{
[Fact]
public void HttpNotFoundResult_InitializesStatusCode()
{
// Arrange & act
var notFound = new NotFoundResult();
// Assert
Assert.Equal(StatusCodes.Status404NotFound, notFound.StatusCode);
}
}
}
|