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.FromJson("wall"), Is.EqualTo(PhotoAlbumType.Wall));
     Assert.That(PhotoAlbumType.FromJson("profile"), Is.EqualTo(PhotoAlbumType.Profile));
     Assert.That(PhotoAlbumType.FromJson("saved"), Is.EqualTo(PhotoAlbumType.Saved));
 }