Esempio n. 1
0
        public void TestMethod2List5()
        {
            //Arrange
            ListTwo <int> l = new ListTwo <int>();

            //Act
            l.MakeList(3);
            //Assert
            Assert.IsTrue(l.Length() == 3);
        }
Esempio n. 2
0
        public void TestMethod2List2()
        {
            //Arrange
            PointTwo <int> p = new PointTwo <int>(4);
            ListTwo <int>  l = new ListTwo <int>(p);

            //Act
            //Assert
            Assert.IsTrue(l.Length() == 1);
        }
Esempio n. 3
0
        public void TestMethod2ListAdd4()
        {
            //Arrange
            Random        rand = new Random();
            ListTwo <int> l    = new ListTwo <int>();

            //Act
            l.Add(1, 3);
            //Assert
            Assert.IsTrue(l.Length() == 3);
        }
Esempio n. 4
0
        public void TestMethod2ListDel4()
        {
            //Arrange
            Random        rand = new Random();
            ListTwo <int> l    = new ListTwo <int>();

            //Act
            // l.Add(1,2);
            l.Delete(1, 4);
            //Assert
            Assert.IsTrue(l.Length() == 0);
        }
Esempio n. 5
0
        public void TestMethod2ListDel3()
        {
            //Arrange
            Random        rand = new Random();
            ListTwo <int> l    = new ListTwo <int>();

            //Act
            l.Add(1, 3);
            l.Delete(2, 8);
            //Assert
            Assert.IsTrue(l.Length() == 1);
        }
Esempio n. 6
0
        public void TestMethod2ListAdd3()
        {
            //Arrange
            Random         rand = new Random();
            PointTwo <int> p    = new PointTwo <int>(4);
            ListTwo <int>  l    = new ListTwo <int>(p);

            //Act
            l.Add(2, rand);
            //Assert
            Assert.IsTrue(l.Length() == 2);
        }