2009-06-26 Robert Jordan <robertj@gmx.net>
authorRobert Jordan <robertj@gmx.net>
Fri, 26 Jun 2009 13:31:32 +0000 (13:31 -0000)
committerRobert Jordan <robertj@gmx.net>
Fri, 26 Jun 2009 13:31:32 +0000 (13:31 -0000)
* *.cs: Upgrade to new NUnit style.

svn path=/trunk/mcs/; revision=136960

13 files changed:
mcs/class/System.Web.Services/Test/System.Web.Services.Description/BindingCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/Test/System.Web.Services.Description/DocumentableItemTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/OperationCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/OperationMessageCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/OperationMessageTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/PortTypeCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/PortTypeTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionCollectionTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/SoapBodyBindingTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/SoapOperationBindingTest.cs
mcs/class/System.Web.Services/Test/System.Web.Services.Description/TypesTest.cs

index dc289825292499324b00359d4b0e23f6a95918f6..82dc304abb377fb6f88d71cae7384164e2cc79a9 100644 (file)
@@ -30,8 +30,8 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertNull (bc["hello"]);
-                       Assertion.AssertEquals (0, bc.Count);
+                       Assert.IsNull (bc["hello"]);
+                       Assert.AreEqual (0, bc.Count);
                }
                
                [Test]
@@ -44,8 +44,8 @@ namespace MonoTests.System.Web.Services.Description
                        
                        bc.Add (b);
 
-                       Assertion.AssertEquals (1, bc.Count);
-                       Assertion.AssertEquals (b, bc[bindingName]);
+                       Assert.AreEqual (1, bc.Count);
+                       Assert.AreEqual (b, bc[bindingName]);
                }
        }
 }
index 2e9cf7e5a822565174193e941d6099beabc2729f..5bc256ee0499c9ee31fbec1bc5234007eab70ae8 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-26  Robert Jordan  <robertj@gmx.net>
+
+       * *.cs: Upgrade to new NUnit style.
+
 2008-12-09  Atsushi Enomoto  <atsushi@ximian.com>
 
        * 443095.wsdl, WebServicesInteroperabilityTest.cs : added
index dd1b8fb484b4b8dedb8f59db0c0f455a30ffcf6b..2f6aa02adc49a664bb333c7cde9f65acd1f6a74f 100644 (file)
@@ -29,14 +29,14 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(String.Empty, item.Documentation);
+                       Assert.AreEqual (String.Empty, item.Documentation);
                }
                
                [Test]
                public void TestNullDocumentationString()
                {
                        item.Documentation = null;
-                       Assertion.AssertEquals(String.Empty, item.Documentation);
+                       Assert.AreEqual (String.Empty, item.Documentation);
                }
        }
 }
index 233f5693d4825ab913dc77bb9b8df6232a6e7c57..9c5bf899eb06760d11f4e69a78bdeb19ccb5796e 100644 (file)
@@ -30,7 +30,7 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(0, operations.Count);
+                       Assert.AreEqual (0, operations.Count);
                }
 
                [Test]
@@ -44,7 +44,7 @@ namespace MonoTests.System.Web.Services.Description
                public void TestAddValidOperation()
                {
                        operations.Add(new Operation());        
-                       Assertion.AssertEquals(1, operations.Count);
+                       Assert.AreEqual (1, operations.Count);
                }
        }
 }
index f73513d8d291d5ad838b21fcf7d55e9319751116..621a36338bc73f109c998ccb97dbfaad141fb1f6 100644 (file)
@@ -31,10 +31,10 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(OperationFlow.None, operations.Flow);
-                       Assertion.AssertNull(operations.Input);
-                       Assertion.AssertNull(operations.Output);
-                       Assertion.AssertEquals(0, operations.Count);
+                       Assert.AreEqual (OperationFlow.None, operations.Flow);
+                       Assert.IsNull (operations.Input);
+                       Assert.IsNull (operations.Output);
+                       Assert.AreEqual (0, operations.Count);
                }
 
                [Test]
@@ -42,10 +42,10 @@ namespace MonoTests.System.Web.Services.Description
                {
                        operations.Add(new OperationInput());
                        
-                       Assertion.AssertEquals(OperationFlow.OneWay, operations.Flow);
-                       Assertion.AssertNotNull(operations.Input);
-                       Assertion.AssertNull(operations.Output);
-                       Assertion.AssertEquals(1, operations.Count);
+                       Assert.AreEqual (OperationFlow.OneWay, operations.Flow);
+                       Assert.IsNotNull (operations.Input);
+                       Assert.IsNull (operations.Output);
+                       Assert.AreEqual (1, operations.Count);
                }
                
                [Test]
@@ -53,10 +53,10 @@ namespace MonoTests.System.Web.Services.Description
                {
                        operations.Add(new OperationOutput());
                        
-                       Assertion.AssertEquals(OperationFlow.Notification, operations.Flow);
-                       Assertion.AssertNull(operations.Input);
-                       Assertion.AssertNotNull(operations.Output);
-                       Assertion.AssertEquals(1, operations.Count);
+                       Assert.AreEqual (OperationFlow.Notification, operations.Flow);
+                       Assert.IsNull (operations.Input);
+                       Assert.IsNotNull (operations.Output);
+                       Assert.AreEqual (1, operations.Count);
                }
 
                [Test]
@@ -65,10 +65,10 @@ namespace MonoTests.System.Web.Services.Description
                        operations.Add(new OperationInput());
                        operations.Add(new OperationOutput());
                        
-                       Assertion.AssertEquals(OperationFlow.RequestResponse, operations.Flow);
-                       Assertion.AssertNotNull(operations.Input);
-                       Assertion.AssertNotNull(operations.Output);
-                       Assertion.AssertEquals(2, operations.Count);
+                       Assert.AreEqual (OperationFlow.RequestResponse, operations.Flow);
+                       Assert.IsNotNull (operations.Input);
+                       Assert.IsNotNull (operations.Output);
+                       Assert.AreEqual (2, operations.Count);
                }
 
                [Test]
@@ -77,10 +77,10 @@ namespace MonoTests.System.Web.Services.Description
                        operations.Add(new OperationOutput());
                        operations.Add(new OperationInput());
                        
-                       Assertion.AssertEquals(OperationFlow.SolicitResponse, operations.Flow);
-                       Assertion.AssertNotNull(operations.Input);
-                       Assertion.AssertNotNull(operations.Output);
-                       Assertion.AssertEquals(2, operations.Count);
+                       Assert.AreEqual (OperationFlow.SolicitResponse, operations.Flow);
+                       Assert.IsNotNull (operations.Input);
+                       Assert.IsNotNull (operations.Output);
+                       Assert.AreEqual (2, operations.Count);
                }
 
                [Test]
index 0f2ddb176a4af52d6ca6d6ded83b22aace90babd..c623d65f29c772a507f154c36e7dc70755af80d3 100644 (file)
@@ -30,10 +30,10 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(String.Empty, operation.Documentation);
-                       Assertion.AssertNull(operation.Name);
-                       Assertion.AssertEquals(XmlQualifiedName.Empty, operation.Message);
-                       Assertion.AssertNull(operation.Operation);
+                       Assert.AreEqual (String.Empty, operation.Documentation);
+                       Assert.IsNull (operation.Name);
+                       Assert.AreEqual (XmlQualifiedName.Empty, operation.Message);
+                       Assert.IsNull (operation.Operation);
                }
        }
 }
index cc853f4a635a81e5fa85c6b27a6d629c2a684df3..82da537bee9af4c4fd559479446457a3df4b1c71 100644 (file)
@@ -30,8 +30,8 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertNull (ptc["hello"]);
-                       Assertion.AssertEquals (0, ptc.Count);
+                       Assert.IsNull (ptc["hello"]);
+                       Assert.AreEqual (0, ptc.Count);
                }
                
                [Test]
@@ -44,8 +44,8 @@ namespace MonoTests.System.Web.Services.Description
                        
                        ptc.Add (p);
 
-                       Assertion.AssertEquals (1, ptc.Count);
-                       Assertion.AssertEquals (p, ptc[portTypeName]);
+                       Assert.AreEqual (1, ptc.Count);
+                       Assert.AreEqual (p, ptc[portTypeName]);
                }
        }
 }
index 1f5bb347161e24b81ad45703671946f45bb72b71..be8a1ffde4320949e3bbdf6f0f2db753ea2070dc 100644 (file)
@@ -28,17 +28,17 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertNull(portType.Name);
-                       Assertion.AssertNotNull(portType.Operations);
-                       Assertion.AssertEquals(0, portType.Operations.Count);
-                       Assertion.AssertNull(portType.ServiceDescription);
+                       Assert.IsNull (portType.Name);
+                       Assert.IsNotNull (portType.Operations);
+                       Assert.AreEqual (0, portType.Operations.Count);
+                       Assert.IsNull (portType.ServiceDescription);
                }
                
                [Test]
                public void TestEmptyName()
                {
                        portType.Name = String.Empty;
-                       Assertion.AssertEquals(String.Empty, portType.Name);
+                       Assert.AreEqual (String.Empty, portType.Name);
                }
 
                [Test]
@@ -46,7 +46,7 @@ namespace MonoTests.System.Web.Services.Description
                {
                        const string LongName = "abcdefghijklmnopqrstuvwxyz";
                        portType.Name = LongName;
-                       Assertion.AssertEquals(LongName, portType.Name);
+                       Assert.AreEqual (LongName, portType.Name);
                }
        }
 }
index 8834d4bbd28e9e54008a77901e40d50182a4b528..8268c4acd0e45f0ddfda0768e555908c207eef80 100644 (file)
@@ -30,8 +30,8 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertNull (sc["hello"]);
-                       Assertion.AssertEquals (0, sc.Count);
+                       Assert.IsNull (sc["hello"]);
+                       Assert.AreEqual (0, sc.Count);
                }
                
                [Test]
@@ -44,8 +44,8 @@ namespace MonoTests.System.Web.Services.Description
                        
                        sc.Add (s);
 
-                       Assertion.AssertEquals (1, sc.Count);
-                       Assertion.AssertEquals (s, sc[serviceName]);
+                       Assert.AreEqual (1, sc.Count);
+                       Assert.AreEqual (s, sc[serviceName]);
                }
        }
 }
index e652a6cd2f078e67d179dba083b7d67a0f40e7a5..5c8b5308685a18d0a6aac13efb44d179687433f2 100644 (file)
@@ -28,8 +28,8 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertNull (sdc["hello"]);
-                       Assertion.AssertEquals (0, sdc.Count);
+                       Assert.IsNull (sdc["hello"]);
+                       Assert.AreEqual (0, sdc.Count);
                }
                
                [Test]
@@ -40,8 +40,8 @@ namespace MonoTests.System.Web.Services.Description
                        ServiceDescription sd = new ServiceDescription ();      
                        sdc.Add (sd);
 
-                       Assertion.AssertEquals (1, sdc.Count);
-                       Assertion.AssertNull (sdc[serviceDescriptionNamespace]);
+                       Assert.AreEqual (1, sdc.Count);
+                       Assert.IsNull (sdc[serviceDescriptionNamespace]);
                }
 
                [Test]
@@ -54,8 +54,8 @@ namespace MonoTests.System.Web.Services.Description
                        
                        sdc.Add (sd);
 
-                       Assertion.AssertEquals (1, sdc.Count);
-                       Assertion.AssertEquals (sd, sdc[serviceDescriptionNamespace]);
+                       Assert.AreEqual (1, sdc.Count);
+                       Assert.AreEqual (sd, sdc[serviceDescriptionNamespace]);
                }
        }
 }
index 13cb935e020f76811af712799d1c0ae763978d94..4a100e80b3fe829b61838c86fb297a6b7f3e8552 100644 (file)
@@ -28,28 +28,28 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(String.Empty, sbb.Encoding);
-                       Assertion.AssertNull(sbb.Parts);
-                       Assertion.AssertNull(sbb.PartsString);
-                       Assertion.AssertEquals(String.Empty, sbb.Namespace);
-                       Assertion.AssertEquals(SoapBindingUse.Default, sbb.Use);
+                       Assert.AreEqual (String.Empty, sbb.Encoding);
+                       Assert.IsNull (sbb.Parts);
+                       Assert.IsNull (sbb.PartsString);
+                       Assert.AreEqual (String.Empty, sbb.Namespace);
+                       Assert.AreEqual (SoapBindingUse.Default, sbb.Use);
                }
                
                [Test]
                public void TestAssignNullPartsString()
                {
                        sbb.PartsString = null;
-                       Assertion.AssertNull(sbb.Parts);
-                       Assertion.AssertEquals(null, sbb.PartsString);
+                       Assert.IsNull (sbb.Parts);
+                       Assert.AreEqual (null, sbb.PartsString);
                }
 
                [Test]
                public void TestAssignEmptyPartsString()
                {
                        sbb.PartsString = String.Empty;
-                       Assertion.AssertNotNull(sbb.Parts);
-                       Assertion.AssertEquals(1, sbb.Parts.Length);
-                       Assertion.AssertEquals(String.Empty, sbb.PartsString);
+                       Assert.IsNotNull (sbb.Parts);
+                       Assert.AreEqual (1, sbb.Parts.Length);
+                       Assert.AreEqual (String.Empty, sbb.PartsString);
                }
 
                [Test]
@@ -57,17 +57,17 @@ namespace MonoTests.System.Web.Services.Description
                {
                        const string Spaces = " ";
                        sbb.PartsString = Spaces;
-                       Assertion.AssertNotNull(sbb.Parts);
-                       Assertion.AssertEquals(2, sbb.Parts.Length);
-                       Assertion.AssertEquals(Spaces, sbb.PartsString);
+                       Assert.IsNotNull (sbb.Parts);
+                       Assert.AreEqual (2, sbb.Parts.Length);
+                       Assert.AreEqual (Spaces, sbb.PartsString);
                }
 
                [Test]
                public void TestAssignNullParts()
                {
                        sbb.Parts = null;
-                       Assertion.AssertNull(sbb.Parts);
-                       Assertion.AssertNull(sbb.PartsString);
+                       Assert.IsNull (sbb.Parts);
+                       Assert.IsNull (sbb.PartsString);
                }
 
                [Test]
@@ -75,8 +75,8 @@ namespace MonoTests.System.Web.Services.Description
                {
                        string[] vals = {"a", "b"};
                        sbb.Parts = vals;
-                       Assertion.AssertNotNull(sbb.Parts);
-                       Assertion.AssertEquals("a b", sbb.PartsString);
+                       Assert.IsNotNull (sbb.Parts);
+                       Assert.AreEqual ("a b", sbb.PartsString);
                }
        }
 }
index 0a159f67d4ed427550068dcbe53433be71eaa25c..ee63341bd9bae0f8d3bd47241a7486ba5c583755 100644 (file)
@@ -28,11 +28,11 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(String.Empty, sob.SoapAction);
-                       Assertion.AssertEquals(SoapBindingStyle.Default, sob.Style);
-                       Assertion.AssertEquals(false, sob.Required);
-                       Assertion.AssertNull(sob.Parent);
-                       Assertion.AssertEquals(false, sob.Handled);
+                       Assert.AreEqual (String.Empty, sob.SoapAction);
+                       Assert.AreEqual (SoapBindingStyle.Default, sob.Style);
+                       Assert.AreEqual (false, sob.Required);
+                       Assert.IsNull (sob.Parent);
+                       Assert.AreEqual (false, sob.Handled);
                }
        }
 }
index d348d61cbdefe4c7cab8caceebac30e3a2b786d9..f3bf9c15456f8d718a6b8107e66db76200c79776 100644 (file)
@@ -29,11 +29,11 @@ namespace MonoTests.System.Web.Services.Description
                [Test]
                public void TestDefaultProperties()
                {
-                       Assertion.AssertEquals(String.Empty, types.Documentation);
-                       Assertion.AssertNotNull(types.Schemas);
-                       Assertion.AssertEquals(0, types.Schemas.Count);
-                       Assertion.AssertNotNull(types.Extensions);
-                       Assertion.AssertEquals(0, types.Extensions.Count);
+                       Assert.AreEqual (String.Empty, types.Documentation);
+                       Assert.IsNotNull (types.Schemas);
+                       Assert.AreEqual (0, types.Schemas.Count);
+                       Assert.IsNotNull (types.Extensions);
+                       Assert.AreEqual (0, types.Extensions.Count);
                }
        }
 }