Beispiel #1
0
 public void PhotoAlbumTypeTest()
 {
     // get test
     Assert.That(PhotoAlbumType.Wall.ToString(), Is.EqualTo("wall"));
     Assert.That(PhotoAlbumType.Profile.ToString(), Is.EqualTo("profile"));
     Assert.That(PhotoAlbumType.Saved.ToString(), Is.EqualTo("saved"));
     // parse test
     Assert.That(PhotoAlbumType.FromJsonString("wall"), Is.EqualTo(PhotoAlbumType.Wall));
     Assert.That(PhotoAlbumType.FromJsonString("profile"), Is.EqualTo(PhotoAlbumType.Profile));
     Assert.That(PhotoAlbumType.FromJsonString("saved"), Is.EqualTo(PhotoAlbumType.Saved));
 }
Beispiel #2
0
        public void PhotoAlbumTypeTest()
        {
            // get test
            Assert.That(actual: PhotoAlbumType.Wall.ToString(), expression: Is.EqualTo(expected: "wall"));
            Assert.That(actual: PhotoAlbumType.Profile.ToString(), expression: Is.EqualTo(expected: "profile"));
            Assert.That(actual: PhotoAlbumType.Saved.ToString(), expression: Is.EqualTo(expected: "saved"));

            // parse test
            Assert.That(actual: PhotoAlbumType.FromJsonString(response: "wall"), expression: Is.EqualTo(expected: PhotoAlbumType.Wall));

            Assert.That(actual: PhotoAlbumType.FromJsonString(response: "profile")
                        , expression: Is.EqualTo(expected: PhotoAlbumType.Profile));

            Assert.That(actual: PhotoAlbumType.FromJsonString(response: "saved"), expression: Is.EqualTo(expected: PhotoAlbumType.Saved));
        }