aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ActionModelValuesTest.cs

24 lines
736 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc.ApplicationModels;
using Xunit;
namespace Microsoft.AspNet.Mvc.Logging
{
public class ActionModelValuesTest
{
[Fact]
public void ActionModelValues_IncludesAllProperties()
{
// Arrange
var exclude = new[] { "Controller", "Attributes", "IsActionNameMatchRequired" };
// Assert
PropertiesAssert.PropertiesAreTheSame(
typeof(ActionModel),
typeof(ActionModelValues),
exclude);
}
}
}