public void PostTypeTest() { // get test Assert.That(PostType.Post.ToString(), Is.EqualTo("post")); Assert.That(PostType.Copy.ToString(), Is.EqualTo("copy")); Assert.That(PostType.Reply.ToString(), Is.EqualTo("reply")); Assert.That(PostType.Postpone.ToString(), Is.EqualTo("postpone")); Assert.That(PostType.Suggest.ToString(), Is.EqualTo("suggest")); // parse test Assert.That(PostType.FromJson("post"), Is.EqualTo(PostType.Post)); Assert.That(PostType.FromJson("copy"), Is.EqualTo(PostType.Copy)); Assert.That(PostType.FromJson("reply"), Is.EqualTo(PostType.Reply)); Assert.That(PostType.FromJson("postpone"), Is.EqualTo(PostType.Postpone)); Assert.That(PostType.FromJson("suggest"), Is.EqualTo(PostType.Suggest)); }