You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user