Ejemplo n.º 1
0
        public void TestCollectionConversion()
        {
            var rawCollection = new Collection
            {
                TermsOfUse = "blah",
                Items      = new List <Item>
                {
                    NullItemFactory(123), NullItemFactory(456)
                }
            };

            var collection = new BGGCollection(rawCollection);

            Assert.AreEqual("blah", collection.TermsOfUse);
            Assert.AreEqual(2, collection.Items.Count);
            Assert.AreEqual(123, collection.Items[0].Id);
        }
Ejemplo n.º 2
0
        public void TestCollectionConversion()
        {
            var rawCollection = new Collection
            {
                TermsOfUse = "blah",
                Items = new List<Item>
                {
                    NullItemFactory(123), NullItemFactory(456)
                }
            };

            var collection = new BGGCollection(rawCollection);

            Assert.AreEqual("blah", collection.TermsOfUse);
            Assert.AreEqual(2, collection.Items.Count);
            Assert.AreEqual(123, collection.Items[0].Id);
        }