Ejemplo n.º 1
0
        public void Exercise1Test1()
        {
            CellPrinter cp     = new CellPrinter();
            string      result = "Cell rot born on 12.12.2019 is alive";

            Assert.AreEqual(result, cp.PrintState(true, DateTime.Today, "rot"));
        }
Ejemplo n.º 2
0
        public void Exercise1_Method1()
        {
            DateTime    dt          = new DateTime(2019, 12, 14);
            string      check       = $"Cell rot born on {dt.Day}.{dt.Month}.{dt.Year} is alive";
            CellPrinter cellPrinter = new CellPrinter();

            Assert.Equal(check, cellPrinter.PrintState(true, dt, "rot"));
        }