Fixing some inaccurate test names and comments

These tests had the wrong names and comments.
This commit is contained in:
Ryan Nowak 2015-03-20 11:18:14 -07:00
parent f5e7a69693
commit 29479895cd
1 changed files with 5 additions and 4 deletions

View File

@ -295,7 +295,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// This model sets a value for 'Title', and the model binder won't trounce it.
//
// There's no validation error because we validate the initialized value.
// There's a validation error because we validate the value in the request (not present).
[Fact]
public async Task FromHeader_BindHeader_ToModel_NoValues_InitializedValue_ValidationError()
{
@ -325,11 +325,12 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
Assert.Equal("Title", error);
}
// This model uses default value for 'Title'.
// This model uses [DefaultValueAttribute(...)] for 'Title', and the model binder won't
// trounce it.
//
// There's no validation error because we validate the default value.
// There's a validation error because we validate the value in the request (not present).
[Fact]
public async Task FromHeader_BindHeader_ToModel_NoValues_DefaultValue_NoValidationError()
public async Task FromHeader_BindHeader_ToModel_NoValues_DefaultValueAttribute_ValidationError()
{
// Arrange
var server = TestHelper.CreateServer(_app, SiteName, _configureServices);