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
@@ -29,7 +29,6 @@ using System.Collections.Generic;
|
||||
using System.Data.Services.Providers;
|
||||
|
||||
using NUnit.Framework;
|
||||
using MonoTests.Common;
|
||||
|
||||
namespace MonoTests.System.Data.Services.Providers
|
||||
{
|
||||
@@ -40,11 +39,11 @@ namespace MonoTests.System.Data.Services.Providers
|
||||
public void TypeIs ()
|
||||
{
|
||||
var rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, null, "System", "String", false);
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.TypeIs ("test", rt);
|
||||
}, "#A1");
|
||||
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.TypeIs (null, null);
|
||||
}, "#A2");
|
||||
}
|
||||
@@ -53,11 +52,11 @@ namespace MonoTests.System.Data.Services.Providers
|
||||
public void Convert ()
|
||||
{
|
||||
var rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, null, "System", "String", false);
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.Convert ("test", rt);
|
||||
}, "#A1");
|
||||
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.Convert (null, null);
|
||||
}, "#A2");
|
||||
}
|
||||
@@ -67,11 +66,11 @@ namespace MonoTests.System.Data.Services.Providers
|
||||
{
|
||||
var rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, null, "System", "String", false);
|
||||
var rp = new ResourceProperty ("Length", ResourcePropertyKind.ComplexType, rt);
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.GetSequenceValue<string> ("test", rp);
|
||||
}, "#A1");
|
||||
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.GetSequenceValue<string> (null, null);
|
||||
}, "#A2");
|
||||
}
|
||||
@@ -81,11 +80,11 @@ namespace MonoTests.System.Data.Services.Providers
|
||||
{
|
||||
var rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, null, "System", "String", false);
|
||||
var rp = new ResourceProperty ("Length", ResourcePropertyKind.ComplexType, rt);
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.GetValue ("test", rp);
|
||||
}, "#A1");
|
||||
|
||||
AssertExtensions.Throws<NotImplementedException> (() => {
|
||||
Assert.Throws<NotImplementedException> (() => {
|
||||
DataServiceProviderMethods.GetValue (null, null);
|
||||
}, "#A2");
|
||||
}
|
||||
|
@@ -29,7 +29,6 @@ using System.Collections.Generic;
|
||||
using System.Data.Services.Providers;
|
||||
|
||||
using NUnit.Framework;
|
||||
using MonoTests.Common;
|
||||
|
||||
namespace MonoTests.System.Data.Services.Providers
|
||||
{
|
||||
@@ -42,31 +41,31 @@ namespace MonoTests.System.Data.Services.Providers
|
||||
var dummy = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, null, "System", "String", false);
|
||||
ResourceType rt;
|
||||
|
||||
AssertExtensions.Throws<ArgumentNullException> (() => {
|
||||
Assert.Throws<ArgumentNullException> (() => {
|
||||
rt = new ResourceType (null, ResourceTypeKind.ComplexType, dummy, "System", "Null", false);
|
||||
}, "#A1-1");
|
||||
|
||||
AssertExtensions.Throws<ArgumentNullException> (() => {
|
||||
Assert.Throws<ArgumentNullException> (() => {
|
||||
rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, dummy, "System", null, false);
|
||||
}, "#A1-2");
|
||||
|
||||
AssertExtensions.Throws<ArgumentNullException> (() => {
|
||||
Assert.Throws<ArgumentNullException> (() => {
|
||||
rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, dummy, null, null, false);
|
||||
}, "#A1-3");
|
||||
|
||||
AssertExtensions.Throws<ArgumentNullException> (() => {
|
||||
Assert.Throws<ArgumentNullException> (() => {
|
||||
rt = new ResourceType (typeof (string), ResourceTypeKind.ComplexType, dummy, "System", String.Empty, false);
|
||||
}, "#A1-4");
|
||||
|
||||
AssertExtensions.Throws<ArgumentException> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
rt = new ResourceType (typeof (string), ResourceTypeKind.Primitive, null, "System", "String", false);
|
||||
}, "#A2-1");
|
||||
|
||||
AssertExtensions.Throws<ArgumentException> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
rt = new ResourceType (typeof (bool), ResourceTypeKind.Primitive, null, "System", "Bool", false);
|
||||
}, "#A2-2");
|
||||
|
||||
AssertExtensions.Throws<ArgumentException> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
rt = new ResourceType (typeof (int), ResourceTypeKind.EntityType, null, "System", "Int32", true);
|
||||
}, "#A2-3");
|
||||
|
||||
|
Reference in New Issue
Block a user