Пример #1
0
        public void SushiToString()
        {
            string test = a.ToString();
            string ex   = "New sushi 322 uah 102 g Fish";

            Assert.AreEqual(test, ex);
        }
Пример #2
0
        public void ReadTest()
        {
            collection.Read(@"C:\Users\Home\Desktop\C#\WPF\Team_Aaa\Task3\Test\data.txt");
            Sushi a = new Sushi("sushi", 1, 1, "1");

            Assert.AreEqual(collection.list[0].ToString(), a.ToString());
            a = new Sushi("AnotherSushi", 2, 2, "2");
            Assert.AreEqual(collection.list[1].ToString(), a.ToString());
        }