Exemplo n.º 1
0
        public void TestLinkConversion()
        {
            var rawLink = new Link
            {
                Id = 1234,
                Type = "Link type",
                value = "Link value"
            };

            var link = new BGGThings.Link(rawLink);

            Assert.AreEqual(1234, link.Id);
            Assert.AreEqual("Link value", link.Name);
            Assert.AreEqual("Link type", link.Type);
        }
Exemplo n.º 2
0
        public void TestLinkConversion()
        {
            var rawLink = new Link
            {
                Id    = 1234,
                Type  = "Link type",
                value = "Link value"
            };

            var link = new BGGThings.Link(rawLink);

            Assert.AreEqual(1234, link.Id);
            Assert.AreEqual("Link value", link.Name);
            Assert.AreEqual("Link type", link.Type);
        }