aspnetcore/test/Microsoft.AspNetCore.Mvc.Co.../HttpNotFoundResultTests.cs

21 lines
583 B
C#

// 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);
}
}
}