Example #1
0
 public void DeactivatedTest()
 {
     // get test
     Assert.That(Deactivated.Deleted.ToString(), Is.EqualTo("deleted"));
     Assert.That(Deactivated.Banned.ToString(), Is.EqualTo("banned"));
     Assert.That(Deactivated.Activated.ToString(), Is.EqualTo("activated"));
     // parse test
     Assert.That(Deactivated.FromJson("deleted"), Is.EqualTo(Deactivated.Deleted));
     Assert.That(Deactivated.FromJson("banned"), Is.EqualTo(Deactivated.Banned));
     Assert.That(Deactivated.FromJson("activated"), Is.EqualTo(Deactivated.Activated));
 }