Esempio n. 1
0
File: Test2.cs Progetto: GoAll5/OOP
        public void TestShow()
        {
            //arrange
            string name   = "яблоко";
            int    id     = 1;
            int    price  = 30;
            int    amount = 5;
            //act
            Product apple    = new Product(id, name, amount, price);
            int     expected = id;
            int     actual   = apple.ShowId();

            //assert ожидали - получили
            Assert.AreEqual(expected, actual);
        }