Beispiel #1
0
        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);
        }