Пример #1
0
        public void UpdateTest()
        {
            Stock expected = new Stock(3);
            expected.Price = 333;
            expected.Uri = "banana.jpg";
            expected.Save();

            Stock actual = new Stock(3);
            Assert.AreEqual(expected.Uri, actual.Uri);
        }
Пример #2
0
        public void SaveTest()
        {
            string name = "4½' Batu Marble(L)";

            Stock target = new Stock();
            target.Type = name;
            target.Price = 300;
            //target.Uri = new Uri("file://kiwi.jpg");
            target.Uri = "kiwi.jpg";
            target.Save();

            Stock actual = new Stock(name);
            Assert.AreEqual(name, actual.Type);
        }