예제 #1
0
        public void BuildJsonData_NullParam()
        {
            FlickrService instance    = new FlickrService();
            var           returnValue = instance.BuildFlickrJsonData("");

            Assert.AreEqual(null, returnValue);
        }
예제 #2
0
        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);
        }