Exemplo n.º 1
0
 public void UserSectionTest()
 {
     // get test
     Assert.That(UserSection.Friends.ToString(), Is.EqualTo("friends"));
     Assert.That(UserSection.Subscriptions.ToString(), Is.EqualTo("subscriptions"));
     // parse test
     Assert.That(UserSection.FromJsonString("friends"), Is.EqualTo(UserSection.Friends));
     Assert.That(UserSection.FromJsonString("subscriptions"), Is.EqualTo(UserSection.Subscriptions));
 }
Exemplo n.º 2
0
        public void UserSectionTest()
        {
            // get test
            Assert.That(actual: UserSection.Friends.ToString(), expression: Is.EqualTo(expected: "friends"));
            Assert.That(actual: UserSection.Subscriptions.ToString(), expression: Is.EqualTo(expected: "subscriptions"));

            // parse test
            Assert.That(actual: UserSection.FromJsonString(response: "friends"), expression: Is.EqualTo(expected: UserSection.Friends));

            Assert.That(actual: UserSection.FromJsonString(response: "subscriptions")
                        , expression: Is.EqualTo(expected: UserSection.Subscriptions));
        }