Exemplo n.º 1
0
 public void VideoCatalogTypeTest()
 {
     // get test
     Assert.That(VideoCatalogType.Channel.ToString(), Is.EqualTo("channel"));
     Assert.That(VideoCatalogType.Category.ToString(), Is.EqualTo("category"));
     // parse test
     Assert.That(VideoCatalogType.FromJsonString("channel"), Is.EqualTo(VideoCatalogType.Channel));
     Assert.That(VideoCatalogType.FromJsonString("category"), Is.EqualTo(VideoCatalogType.Category));
 }
Exemplo n.º 2
0
        public void VideoCatalogTypeTest()
        {
            // get test
            Assert.That(actual: VideoCatalogType.Channel.ToString(), expression: Is.EqualTo(expected: "channel"));
            Assert.That(actual: VideoCatalogType.Category.ToString(), expression: Is.EqualTo(expected: "category"));

            // parse test
            Assert.That(actual: VideoCatalogType.FromJsonString(response: "channel")
                        , expression: Is.EqualTo(expected: VideoCatalogType.Channel));

            Assert.That(actual: VideoCatalogType.FromJsonString(response: "category")
                        , expression: Is.EqualTo(expected: VideoCatalogType.Category));
        }