Beispiel #1
0
 public void LinkAccessTypeTest()
 {
     // get test
     Assert.That(LinkAccessType.NotBanned.ToString(), Is.EqualTo("not_banned"));
     Assert.That(LinkAccessType.Banned.ToString(), Is.EqualTo("banned"));
     Assert.That(LinkAccessType.Processing.ToString(), Is.EqualTo("processing"));
     // parse test
     Assert.That(LinkAccessType.FromJsonString("not_banned"), Is.EqualTo(LinkAccessType.NotBanned));
     Assert.That(LinkAccessType.FromJsonString("banned"), Is.EqualTo(LinkAccessType.Banned));
     Assert.That(LinkAccessType.FromJsonString("processing"), Is.EqualTo(LinkAccessType.Processing));
 }
Beispiel #2
0
        public void LinkAccessTypeTest()
        {
            // get test
            Assert.That(actual: LinkAccessType.NotBanned.ToString(), expression: Is.EqualTo(expected: "not_banned"));
            Assert.That(actual: LinkAccessType.Banned.ToString(), expression: Is.EqualTo(expected: "banned"));
            Assert.That(actual: LinkAccessType.Processing.ToString(), expression: Is.EqualTo(expected: "processing"));

            // parse test
            Assert.That(actual: LinkAccessType.FromJsonString(response: "not_banned")
                        , expression: Is.EqualTo(expected: LinkAccessType.NotBanned));

            Assert.That(actual: LinkAccessType.FromJsonString(response: "banned"), expression: Is.EqualTo(expected: LinkAccessType.Banned));

            Assert.That(actual: LinkAccessType.FromJsonString(response: "processing")
                        , expression: Is.EqualTo(expected: LinkAccessType.Processing));
        }