예제 #1
0
        public void Exercise1Test2()
        {
            CellPrinter cp     = new CellPrinter();
            string      result = "Cell is on Position X:6 Y:7";

            Assert.AreEqual(result, cp.PrintPostion(6, 7));
        }
예제 #2
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"));
        }
예제 #3
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"));
        }
예제 #4
0
        public object Method1()
        {
            CellPrinter cp = new CellPrinter();

            return(cp);

            throw new NotImplementedException();
        }
예제 #5
0
        public void Exercise1_Method2()
        {
            int         x           = 6;
            int         y           = 7;
            string      check       = $"Cell is on Position X:{x} Y:{y}";
            CellPrinter cellPrinter = new CellPrinter();

            Assert.Equal(check, cellPrinter.PrintPostion(x, y));
        }
예제 #6
0
        public object Method1()
        {
            CellPrinter cellPrinter = new CellPrinter();

            return(cellPrinter);
        }
        public object Method1()
        {
            ICellPrinter x = new CellPrinter();

            return(x);
        }