Beispiel #1
0
        public void TestMethod4()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Fill();
        }
Beispiel #2
0
        public void TestMethod2()
        {
            var cup = new Cup();

            cup.Fill();
            Assert.IsTrue(cup.IsFull);
        }
Beispiel #3
0
        public void TestMethod6()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Drink();
            cup.Drink();
        }
Beispiel #4
0
        public void TestMethod3()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Drink();

            Assert.IsFalse(cup.IsFull);
        }
Beispiel #5
0
        public void TestMethod7()
        {
            var cup = new Cup();

            for (int i = 0; i < 1000; i++)
            {
                cup.Fill();
                cup.Drink();
            }

            Assert.IsFalse(cup.IsFull);
        }
 public void TestCreateCup()
 {
     try
     {
         Cup        w = new Cup("kapuchino");//Poroski.coffelist.Keys.ToList()[0]);
         TextWriter s = Console.Out;
         w.Create();
         Assert.IsTrue(s.ToString().Contains("Your coffe is ready!"));
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Произошло исключение - {ex.Message}");
     }
 }
Beispiel #7
0
        public void TestMethod1()
        {
            var cup = new Cup();

            Assert.IsFalse(cup.IsFull);
        }
Beispiel #8
0
        public void TestMethod5()
        {
            var cup = new Cup();

            cup.Drink();
        }