namespace ChadSoft.Utils.Pingy.Tests { using System; using ChadSoft.Testing; using ChadSoft.Utils.Pingy.Pingers; using NUnit.Framework; [TestFixture] public class UriPingerTests : TestBase { public class MockUriPinger : UriPinger { public MockUriPinger(Uri location) : base(location) { } public override PingResponse Ping() { throw new NotImplementedException(); } public override void Ping(PingerCallback callback) { throw new NotImplementedException(); } } [Test] public new void ToString() { string expectedLocation = "http://validuri/valid.html"; UriPinger pinger = new MockUriPinger(new Uri(expectedLocation)); Assert.AreEqual(expectedLocation, pinger.ToString()); } } }