public void BuildJsonData_NullParam() { FlickrService instance = new FlickrService(); var returnValue = instance.BuildFlickrJsonData(""); Assert.AreEqual(null, returnValue); }
public void BuildJsonData_ValidStringParam() { FlickrService instance = new FlickrService(); var returnValue = instance.BuildFlickrJsonData(TestData.GetJsonData()); Assert.IsNotNull(returnValue); Assert.AreEqual(20, returnValue.Items.Count); Assert.IsNotNull(returnValue.Description); Assert.IsNotNull(returnValue.Modified); }