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)); }
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)); }