From: <bo...@us...> - 2007-04-23 16:13:16
|
Revision: 201 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=201&view=rev Author: bodewig Date: 2007-04-23 09:13:15 -0700 (Mon, 23 Apr 2007) Log Message: ----------- make test locale independent Modified Paths: -------------- trunk/xmlunit/tests/csharp/ValidatorTests.cs Modified: trunk/xmlunit/tests/csharp/ValidatorTests.cs =================================================================== --- trunk/xmlunit/tests/csharp/ValidatorTests.cs 2007-04-23 15:47:38 UTC (rev 200) +++ trunk/xmlunit/tests/csharp/ValidatorTests.cs 2007-04-23 16:13:15 UTC (rev 201) @@ -28,9 +28,12 @@ [Test] public void XsdInvalidFileIsNotValid() { Validator validator = PerformAssertion(INVALID_FILE, false); - string expected = "The element 'http://www.publishing.org:Book' has incomplete content"; - Assert.AreEqual(true, - validator.ValidationMessage.StartsWith(expected)); + Assert.IsFalse(validator.IsValid); + Assert.IsTrue(validator.ValidationMessage + .IndexOf("http://www.publishing.org") > -1, + validator.ValidationMessage); + Assert.IsTrue(validator.ValidationMessage.IndexOf("Book") > -1, + validator.ValidationMessage); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |