Ejemplo n.º 1
0
        public void Excercise3Method1_MapSize_1()
        {
            Exercise3 e3    = new Exercise3();
            MyMap     mymap = (MyMap)e3.Method1();

            Assert.Equal(1, mymap.GetMapSize(1));
        }
Ejemplo n.º 2
0
        public void Excercise3Method1_AddCell_1()
        {
            Exercise3 e3    = new Exercise3();
            MyMap     mymap = (MyMap)e3.Method1();

            Assert.Equal(1, mymap.AddNewCells(1));
        }
Ejemplo n.º 3
0
        public void Exercise3Method1Test3()
        {
            Exercise3 e3  = new Exercise3();
            MyMap     map = (MyMap)e3.Method1();

            Assert.AreEqual(map.AddNewCells(2011), 2011);
        }
Ejemplo n.º 4
0
        public void Excercise3Method1_MapName_false()
        {
            Exercise3 e3    = new Exercise3();
            MyMap     mymap = (MyMap)e3.Method1();

            Assert.NotEqual("BID-Mapt", mymap.GetMapName());
        }
Ejemplo n.º 5
0
        public void Exercise3Method1Test2()
        {
            Exercise3 e3  = new Exercise3();
            MyMap     map = (MyMap)e3.Method1();

            Assert.AreEqual(map.GetMapSize(5.2f), 5.2f * 5.2f);
        }
Ejemplo n.º 6
0
        public void Exercise3Method1Test1()
        {
            Exercise3 e3  = new Exercise3();
            MyMap     map = (MyMap)e3.Method1();

            Assert.AreEqual(map.GetMapName(), "BID-Map");
        }
Ejemplo n.º 7
0
        public void Ex3Test3()
        {
            Exercise3 ex3   = new Exercise3();
            MyMap     myMap = (MyMap)ex3.Method1();

            Assert.AreEqual(myMap.AddNewCells(2), 2);
        }
Ejemplo n.º 8
0
        public void Ex3Test2()
        {
            Exercise3 ex3   = new Exercise3();
            MyMap     myMap = (MyMap)ex3.Method1();

            Assert.AreEqual(myMap.GetMapSize(1), 1);
        }
Ejemplo n.º 9
0
 public void Method1TestIfReturnIsNotNull()
 {
     Assert.IsNotNull(ex3.Method1());
 }