From: Jeff R. <jef...@us...> - 2005-11-20 20:42:35
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorUnitTests/SharpVectors/Dom/Svg Modified Files: CssPropertyProfileTests.cs CssSelectorsTests.cs SvgWindowTest.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: CssSelectorsTests.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/CssSelectorsTests.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CssSelectorsTests.cs 23 Apr 2003 22:41:11 -0000 1.2 +++ CssSelectorsTests.cs 20 Nov 2005 20:42:23 -0000 1.3 @@ -37,97 +37,97 @@ [Test] public void TestStyleSheetLength() { - Assertion.AssertEquals(1, doc.StyleSheets.Length); + Assert.AreEqual(1, doc.StyleSheets.Length); } [Test] public void TestPropertyAttribute() { - Assertion.AssertEquals(correctValue, getFill(1)); + Assert.AreEqual(correctValue, getFill(1)); } [Test] public void TestId() { - Assertion.AssertEquals(correctValue, getFill(2)); + Assert.AreEqual(correctValue, getFill(2)); } [Test] public void TestType() { - Assertion.AssertEquals(correctValue, getFill(3)); + Assert.AreEqual(correctValue, getFill(3)); } [Test] public void TestClass() { - Assertion.AssertEquals(correctValue, getFill(4)); + Assert.AreEqual(correctValue, getFill(4)); } [Test] public void TestClass2() { - Assertion.AssertEquals(correctValue, getFill(5)); + Assert.AreEqual(correctValue, getFill(5)); } [Test] public void TestUniversal() { - Assertion.AssertEquals(correctValue, getFill(6)); + Assert.AreEqual(correctValue, getFill(6)); } [Test] public void TestAttribute() { - Assertion.AssertEquals(correctValue, getFill(7)); + Assert.AreEqual(correctValue, getFill(7)); } [Test] public void TestAttributeEquals() { - Assertion.AssertEquals(correctValue, getFill(8)); + Assert.AreEqual(correctValue, getFill(8)); } [Test] public void TestAttributeStartsWith() { - Assertion.AssertEquals(correctValue, getFill(9)); + Assert.AreEqual(correctValue, getFill(9)); } [Test] public void TestAttributeEndsWith() { - Assertion.AssertEquals(correctValue, getFill(10)); + Assert.AreEqual(correctValue, getFill(10)); } [Test] public void TestNotType() { - Assertion.AssertEquals(correctValue, getFill(11)); + Assert.AreEqual(correctValue, getFill(11)); } [Test] public void TestNotId() { - Assertion.AssertEquals(correctValue, getFill(12)); + Assert.AreEqual(correctValue, getFill(12)); } [Test] public void TestNotClass() { - Assertion.AssertEquals(correctValue, getFill(13)); + Assert.AreEqual(correctValue, getFill(13)); } [Test] public void TestLang() { - Assertion.AssertEquals(correctValue, getFill(14)); + Assert.AreEqual(correctValue, getFill(14)); } [Test] public void TestEmpty() { - Assertion.AssertEquals(correctValue, getFill(15)); + Assert.AreEqual(correctValue, getFill(15)); } } } Index: CssPropertyProfileTests.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/CssPropertyProfileTests.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CssPropertyProfileTests.cs 23 Apr 2003 22:41:09 -0000 1.2 +++ CssPropertyProfileTests.cs 20 Nov 2005 20:42:23 -0000 1.3 @@ -12,7 +12,7 @@ { SvgWindow wnd = new SvgWindow(100, 100, null); SvgDocument doc = new SvgDocument(wnd); - Assertion.AssertEquals(61, doc.CssPropertyProfile.Length); + Assert.AreEqual(61, doc.CssPropertyProfile.Length); } } } Index: SvgWindowTest.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/SvgWindowTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgWindowTest.cs 18 Feb 2003 22:05:10 -0000 1.1 +++ SvgWindowTest.cs 20 Nov 2005 20:42:23 -0000 1.2 @@ -2,6 +2,9 @@ /* * $Header$ * $Log$ + * Revision 1.2 2005/11/20 20:42:23 jeffrafter + * Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes + * * Revision 1.1 2003/02/18 22:05:10 nikgus * no message * @@ -36,8 +39,8 @@ public void TestConstructor1() { SvgWindow window = new SvgWindow( 1,2 ); - Assertion.AssertEquals("Width",1,window.InnerWidth); - Assertion.AssertEquals("Height",2,window.InnerHeight); + Assert.AreEqual("Width",1,window.InnerWidth); + Assert.AreEqual("Height",2,window.InnerHeight); } @@ -47,8 +50,8 @@ System.Windows.Forms.GroupBox control = new System.Windows.Forms.GroupBox(); SvgWindow window = new SvgWindow( 1, 2, control ); - Assertion.AssertEquals("Width",1,window.InnerWidth); - Assertion.AssertEquals("Height",2,window.InnerHeight); + Assert.AreEqual("Width",1,window.InnerWidth); + Assert.AreEqual("Height",2,window.InnerHeight); }*/ /* [ExpectedException(typeof(NullReferenceException))] |