namespace MonoTests.System.Xml\r
{\r
[TestFixture]\r
- public class XmlUrlResolverTests : Assertion\r
+ public class XmlUrlResolverTests\r
{\r
XmlUrlResolver resolver;\r
\r
public void FileUri ()\r
{\r
Uri resolved = resolver.ResolveUri (null, "Test/XmlFiles/xsd/xml.xsd");\r
- AssertEquals ("file", resolved.Scheme);\r
+ Assert.AreEqual ("file", resolved.Scheme);\r
Stream s = resolver.GetEntity (resolved, null, typeof (Stream)) as Stream;\r
}\r
\r
[Category ("NotDotNet")]\r
public void FileUri2 ()\r
{\r
- AssertEquals ("file://usr/local/src", resolver.ResolveUri (new Uri ("file://usr/local/src"), null).ToString ());\r
+ Assert.AreEqual (resolver.ResolveUri (new Uri ("file://usr/local/src"), null).ToString (), "file://usr/local/src");\r
// MS.NET returns the Uri.ToString() as \r
// file://usr/local/src, but it is apparently \r
// incorrect in the context of Unix path.\r
- AssertEquals ("file:///usr/local/src", resolver.ResolveUri (new Uri ("file:///usr/local/src"), null).ToString ());\r
+ Assert.AreEqual (resolver.ResolveUri (new Uri ("file:///usr/local/src"), null).ToString (), "file:///usr/local/src");\r
}\r
\r
[Test]\r
public void HttpUri ()\r
{\r
- AssertEquals ("http://test.xml/", resolver.ResolveUri (null, "http://test.xml").ToString ());\r
+ Assert.AreEqual (resolver.ResolveUri (null, "http://test.xml").ToString (), "http://test.xml/");\r
}\r
\r
[Test]\r
public void HttpUri2 ()\r
{\r
- AssertEquals ("http://go-mono.com/", resolver.ResolveUri (new Uri ("http://go-mono.com"), null).ToString ());\r
+ Assert.AreEqual (resolver.ResolveUri (new Uri ("http://go-mono.com"), null).ToString (), "http://go-mono.com/");\r
}\r
\r
[Test]\r
public void ResolveUriWithNullArgs ()\r
{\r
resolver.ResolveUri (null, null);\r
- Fail ("Should be error (MS.NET throws ArgumentException here).");\r
+ Assert.Fail ("Should be error (MS.NET throws ArgumentException here).");\r
}\r
\r
// [Test] Uncomment if you want to test.\r