示例#1
0
 public void PhotoFeedTypeTest()
 {
     // get test
     Assert.That(PhotoFeedType.Photo.ToString(), Is.EqualTo("photo"));
     Assert.That(PhotoFeedType.PhotoTag.ToString(), Is.EqualTo("photo_tag"));
     // parse test
     Assert.That(PhotoFeedType.FromJsonString("photo"), Is.EqualTo(PhotoFeedType.Photo));
     Assert.That(PhotoFeedType.FromJsonString("photo_tag"), Is.EqualTo(PhotoFeedType.PhotoTag));
 }
示例#2
0
        public void PhotoFeedTypeTest()
        {
            // get test
            Assert.That(actual: PhotoFeedType.Photo.ToString(), expression: Is.EqualTo(expected: "photo"));
            Assert.That(actual: PhotoFeedType.PhotoTag.ToString(), expression: Is.EqualTo(expected: "photo_tag"));

            // parse test
            Assert.That(actual: PhotoFeedType.FromJsonString(response: "photo"), expression: Is.EqualTo(expected: PhotoFeedType.Photo));

            Assert.That(actual: PhotoFeedType.FromJsonString(response: "photo_tag")
                        , expression: Is.EqualTo(expected: PhotoFeedType.PhotoTag));
        }