OSDN Git Service

ImgAzyobuziNetクラスのテストケース修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Sat, 19 Jan 2013 11:53:13 +0000 (20:53 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 19 Jan 2013 11:59:04 +0000 (20:59 +0900)
OpenTween.Tests/Thumbnail/Services/ImgAzyobuziNetTest.cs

index 9dc6d98..703502b 100644 (file)
@@ -34,15 +34,15 @@ namespace OpenTween.Thumbnail.Services
         class TestImgAzyobuziNet : ImgAzyobuziNet
         {
             public TestImgAzyobuziNet()
-                : base()
+                : this(new[] { "http://img.azyobuzi.net/api/" })
             {
-                this.ApiHosts = new[] { "http://img.azyobuzi.net/api/" };
             }
 
             public TestImgAzyobuziNet(string[] apiHosts)
                 : base()
             {
                 this.ApiHosts = apiHosts;
+                this.LoadRegex();
             }
 
             public string GetApiBase()
@@ -76,7 +76,7 @@ namespace OpenTween.Thumbnail.Services
 
             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?uri=http%3A%2F%2Fexample.com%2Fabcd"));
+            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);
         }