public void PhotoSearchOptionsCalculateSlideshowUrlBasicTest() { var o = new PhotoSearchOptions {Text = "kittens", InGallery = true}; var url = o.CalculateSlideshowUrl(); Assert.IsNotNull(url); const string expected = "https://www.flickr.com/show.gne?api_method=flickr.photos.search&method_params=text|kittens;in_gallery|1"; Assert.AreEqual(expected, url); }
public void PhotoSearchOptionsCalculateSlideshowUrlBasicTest() { PhotoSearchOptions o = new PhotoSearchOptions(); o.Text = "kittens"; o.InGallery = true; string url = o.CalculateSlideshowUrl(); Assert.IsNotNull(url); string expected = "http://www.flickr.com/show.gne?api_method=flickr.photos.search&method_params=text|kittens;in_gallery|1"; Assert.AreEqual<string>(expected, url); }