Exemplo n.º 1
0
        public void Ex1Methd1_notalive()
        {
            Exercise1   ex1 = new Exercise1();
            CellPrinter cp  = (CellPrinter)ex1.Method1();

            Assert.Equal($"Cell red born on {System.DateTime.Now} is not alive", cp.PrintState(false, System.DateTime.Now, "red"));
        }
Exemplo n.º 2
0
        public void Exercise1Method1Test3()
        {
            Exercise1   e1             = new Exercise1();
            CellPrinter returnedObject = (CellPrinter)e1.Method1();

            Assert.AreEqual(returnedObject.PrintState(true, new System.DateTime(2019, 12, 12), "red"), "Cell red born on 12.12.2019 is alive");
        }
Exemplo n.º 3
0
        public void Ex1Test1()
        {
            Exercise1   ex1         = new Exercise1();
            CellPrinter cellPrinter = (CellPrinter)ex1.Method1();

            Assert.AreEqual(cellPrinter.PrintState(true, System.DateTime.Now, "red"), $"Cell red born on {System.DateTime.Now} is alive");
        }
Exemplo n.º 4
0
        public void Test2()
        {
            var x = new CellPrinter();

            Assert.AreEqual("Cell rot born on 12.12.2019 is alive", x.PrintState(true, date, "rot"));
        }
Exemplo n.º 5
0
        public void Test1()
        {
            CellPrinter cellPrinter = new CellPrinter();

            Assert.AreEqual("Cell rot born on 14.12.2019 is alive", cellPrinter.PrintState(true, new System.DateTime(2019, 12, 14).Date, "rot"));
        }