diff --git a/src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs
index 3ac0ec9de0..ebeb1fbcea 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Properties/Resources.Designer.cs
@@ -443,7 +443,7 @@ namespace Microsoft.AspNet.Mvc.Core
}
///
- /// The value cannot be null or empty.
+ /// Value cannot be null or empty.
///
internal static string ArgumentCannotBeNullOrEmpty
{
@@ -451,7 +451,7 @@ namespace Microsoft.AspNet.Mvc.Core
}
///
- /// The value cannot be null or empty.
+ /// Value cannot be null or empty.
///
internal static string FormatArgumentCannotBeNullOrEmpty()
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/Resources.resx b/src/Microsoft.AspNet.Mvc.Core/Resources.resx
index cb633c1cca..9f9b9be8e3 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.Core/Resources.resx
@@ -199,7 +199,7 @@
The action descriptor must be of type '{0}'.
- The value cannot be null or empty.
+ Value cannot be null or empty.The '{0}' property of '{1}' must not be null.
diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/ControllerTests.cs b/test/Microsoft.AspNet.Mvc.Core.Test/ControllerTests.cs
index 326c56cebc..3631a53391 100644
--- a/test/Microsoft.AspNet.Mvc.Core.Test/ControllerTests.cs
+++ b/test/Microsoft.AspNet.Mvc.Core.Test/ControllerTests.cs
@@ -96,8 +96,8 @@ namespace Microsoft.AspNet.Mvc.Test
var controller = new Controller();
// Act & Assert
- ExceptionAssert.ThrowsArgument(
- () => controller.Redirect(url: url), "url", "The value cannot be null or empty");
+ ExceptionAssert.ThrowsArgumentNullOrEmpty(
+ () => controller.Redirect(url: url), "url");
}
[Theory]
@@ -109,8 +109,8 @@ namespace Microsoft.AspNet.Mvc.Test
var controller = new Controller();
// Act & Assert
- ExceptionAssert.ThrowsArgument(
- () => controller.RedirectPermanent(url: url), "url", "The value cannot be null or empty");
+ ExceptionAssert.ThrowsArgumentNullOrEmpty(
+ () => controller.RedirectPermanent(url: url), "url");
}
[Fact]
diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/ViewDataDictionaryTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/ViewDataDictionaryTest.cs
index 4198c1ba7e..7223b235bd 100644
--- a/test/Microsoft.AspNet.Mvc.Core.Test/ViewDataDictionaryTest.cs
+++ b/test/Microsoft.AspNet.Mvc.Core.Test/ViewDataDictionaryTest.cs
@@ -2,7 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
+using System.Collections;
+using System.Collections.Generic;
using Microsoft.AspNet.Mvc.ModelBinding;
+using Microsoft.AspNet.Testing;
using Moq;
using Xunit;
@@ -156,6 +159,343 @@ namespace Microsoft.AspNet.Mvc.Core
Assert.IsType>(viewData.Data);
}
+ public static TheoryData