Imported Upstream version 5.10.0.47

Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-24 17:04:36 +00:00
parent 88ff76fe28
commit e46a49ecf1
5927 changed files with 226314 additions and 129848 deletions

View File

@ -39,7 +39,6 @@ using NUnit.Framework;
using MonoTests.SystemWeb.Framework;
using MonoTests.stand_alone.WebHarness;
using MonoTests.Common;
namespace MonoTests.System.Web.Compilation
{
@ -49,25 +48,25 @@ namespace MonoTests.System.Web.Compilation
[Test]
public void RegisterBuildProvider ()
{
AssertExtensions.Throws<ArgumentException> (() => {
Assert.Throws<ArgumentException> (() => {
BuildProvider.RegisterBuildProvider (null, typeof (FooBuildProvider));
}, "#A1-1");
AssertExtensions.Throws<ArgumentException> (() => {
Assert.Throws<ArgumentException> (() => {
BuildProvider.RegisterBuildProvider (String.Empty, typeof (FooBuildProvider));
}, "#A1-2");
AssertExtensions.Throws<ArgumentNullException> (() => {
Assert.Throws<ArgumentNullException> (() => {
BuildProvider.RegisterBuildProvider (".foo", null);
}, "#A1-3");
AssertExtensions.Throws<ArgumentException> (() => {
Assert.Throws<ArgumentException> (() => {
BuildProvider.RegisterBuildProvider (".foo", typeof (string));
}, "#A1-4");
// This would have worked if we called the method during the pre-application start stage
// (we have a test for this in the standalone test suite)
AssertExtensions.Throws<InvalidOperationException> (() => {
Assert.Throws<InvalidOperationException> (() => {
BuildProvider.RegisterBuildProvider (".foo", typeof (BuildProvider));
}, "#A1-5");
}