public void NotMatchTest() { var service = new TestImgAzyobuziNet(); var thumbinfo = service.GetThumbnailInfo("http://hogehoge.com/abcd", null); Assert.That(thumbinfo, Is.Null); }
public void NotMatchTest() { var service = new TestImgAzyobuziNet(); var thumbinfo = service.GetThumbnailInfo("http://hogehoge.com/abcd", null); Assert.That(thumbinfo, Is.Null); }
public void MatchTest() { var service = new TestImgAzyobuziNet(); var thumbinfo = service.GetThumbnailInfo("http://example.com/abcd", null); Assert.That(thumbinfo, Is.Not.Null); Assert.That(thumbinfo.ImageUrl, Is.EqualTo("http://example.com/abcd")); Assert.That(thumbinfo.ThumbnailUrl, Is.EqualTo("http://img.azyobuzi.net/api/redirect?size=large&uri=http%3A%2F%2Fexample.com%2Fabcd")); Assert.That(thumbinfo.TooltipText, Is.Null); }
public void MatchTest() { var service = new TestImgAzyobuziNet(); var thumbinfo = service.GetThumbnailInfo("http://example.com/abcd", null); Assert.That(thumbinfo, Is.Not.Null); Assert.That(thumbinfo.ImageUrl, Is.EqualTo("http://example.com/abcd")); Assert.That(thumbinfo.ThumbnailUrl, Is.EqualTo("http://img.azyobuzi.net/api/redirect?size=large&uri=http%3A%2F%2Fexample.com%2Fabcd")); Assert.That(thumbinfo.TooltipText, Is.Null); }
public void ServerOutageTest() { var service = new TestImgAzyobuziNet(new[] { "http://down.example.com/api/" }); service.LoadRegex(); Assert.That(service.GetApiBase(), Is.Null); var thumbinfo = service.GetThumbnailInfo("http://example.com/abcd", null); Assert.That(thumbinfo, Is.Null); }
public void ServerOutageTest() { var service = new TestImgAzyobuziNet(new[] { "http://down.example.com/api/" }); service.LoadRegex(); Assert.That(service.GetApiBase(), Is.Null); var thumbinfo = service.GetThumbnailInfo("http://example.com/abcd", null); Assert.That(thumbinfo, Is.Null); }