Example #1
0
        public void TestGetsShopAttributes()
        {
            System.Xml.XmlElement shopElement = RoarExtensions.CreateXmlElement("shop_entry", "");
            shopElement.SetAttribute("ikey", "shop_item_ikey_1");
            shopElement.SetAttribute("label", "Shop item 1");
            shopElement.SetAttribute("description", "Lorem Ipsum");


            Roar.DomainObjects.ShopEntry shopEntry = converter.Build(shopElement);
            mockery.VerifyAllExpectationsHaveBeenMet();

            Assert.AreEqual("shop_item_ikey_1", shopEntry.ikey);
            Assert.AreEqual("Shop item 1", shopEntry.label);
            Assert.AreEqual("Lorem Ipsum", shopEntry.description);
        }