Ejemplo n.º 1
0
        public void SchoolVanLengthSuccess()
        {
            SetUp();
            SchoolVan      newSchoolVan = new SchoolVan();
            SchoolVanLogic testLogic    = new SchoolVanLogic();

            testLogic.Add(newSchoolVan);
            Assert.IsTrue(testLogic.Length() == 1);
        }
Ejemplo n.º 2
0
        public void AddSchoolVanDifferentObjectFail()
        {
            SetUp();
            SchoolVanLogic testLogic = new SchoolVanLogic();
            int            test      = 0;

            testLogic.Add(test);
            int expectedSchoolVanListLength = 0;

            Assert.IsTrue(testLogic.Length() == expectedSchoolVanListLength);
        }
Ejemplo n.º 3
0
        public void AddSchoolVanFail()
        {
            SetUp();
            SchoolVan      newSchoolVan = new SchoolVan();
            SchoolVanLogic testLogic    = new SchoolVanLogic();

            testLogic.Add(newSchoolVan);
            SchoolVan anotherNewSchoolVan = new SchoolVan();

            testLogic.Add(anotherNewSchoolVan);
            int expectedSchoolVanListLength = 2;

            Assert.IsTrue(testLogic.Length() == expectedSchoolVanListLength);
        }