Exemple #1
0
 public void FriendsOrderTest()
 {
     // get test
     Assert.That(FriendsOrder.Name.ToString(), Is.EqualTo("name"));
     Assert.That(FriendsOrder.Hints.ToString(), Is.EqualTo("hints"));
     Assert.That(FriendsOrder.Random.ToString(), Is.EqualTo("random"));
     // parse test
     Assert.That(FriendsOrder.FromJsonString("name"), Is.EqualTo(FriendsOrder.Name));
     Assert.That(FriendsOrder.FromJsonString("hints"), Is.EqualTo(FriendsOrder.Hints));
     Assert.That(FriendsOrder.FromJsonString("random"), Is.EqualTo(FriendsOrder.Random));
 }
Exemple #2
0
        public void FriendsOrderTest()
        {
            // get test
            Assert.That(actual: FriendsOrder.Name.ToString(), expression: Is.EqualTo(expected: "name"));
            Assert.That(actual: FriendsOrder.Hints.ToString(), expression: Is.EqualTo(expected: "hints"));
            Assert.That(actual: FriendsOrder.Random.ToString(), expression: Is.EqualTo(expected: "random"));

            // parse test
            Assert.That(actual: FriendsOrder.FromJsonString(response: "name"), expression: Is.EqualTo(expected: FriendsOrder.Name));
            Assert.That(actual: FriendsOrder.FromJsonString(response: "hints"), expression: Is.EqualTo(expected: FriendsOrder.Hints));
            Assert.That(actual: FriendsOrder.FromJsonString(response: "random"), expression: Is.EqualTo(expected: FriendsOrder.Random));
        }