示例#1
0
 public void LikesFilterTest()
 {
     // get test
     Assert.That(LikesFilter.Likes.ToString(), Is.EqualTo("likes"));
     Assert.That(LikesFilter.Copies.ToString(), Is.EqualTo("copies"));
     // parse test
     Assert.That(LikesFilter.FromJsonString("likes"), Is.EqualTo(LikesFilter.Likes));
     Assert.That(LikesFilter.FromJsonString("copies"), Is.EqualTo(LikesFilter.Copies));
 }
示例#2
0
        public void LikesFilterTest()
        {
            // get test
            Assert.That(actual: LikesFilter.Likes.ToString(), expression: Is.EqualTo(expected: "likes"));
            Assert.That(actual: LikesFilter.Copies.ToString(), expression: Is.EqualTo(expected: "copies"));

            // parse test
            Assert.That(actual: LikesFilter.FromJsonString(response: "likes"), expression: Is.EqualTo(expected: LikesFilter.Likes));
            Assert.That(actual: LikesFilter.FromJsonString(response: "copies"), expression: Is.EqualTo(expected: LikesFilter.Copies));
        }