Esempio n. 1
0
        public void TestMethodListDel4()
        {
            //Arrange
            double[]         arr = new double[] { 0.2 };
            ListOne <double> l   = new ListOne <double>(arr);

            //Act
            l.Delete();
            //Assert
            Assert.IsTrue(l.Beg == null);
        }
Esempio n. 2
0
        public void TestMethodListDel2()
        {
            //Arrange
            double[]         arr = new double[] { 0.2, 0.4, 0.6 };
            ListOne <double> l   = new ListOne <double>(arr);

            //Act
            l.Delete(1, 2);
            //Assert
            Assert.IsTrue(l.Length == 1);
        }
Esempio n. 3
0
        public void TestMethodListDel6()
        {
            //Arrange
            double[]         arr = new double[] { 0.2 };
            ListOne <double> l   = new ListOne <double>(arr);
            ListOne <double> ll  = l.ShallowCopy();

            //Act
            l.Delete();
            //Assert
            Assert.IsTrue(ll.Beg.Data == 0.2);
        }
Esempio n. 4
0
        public void TestMethodListDel5()
        {
            //Arrange
            double[]         arr = new double[] { 0.2 };
            ListOne <double> l   = new ListOne <double>(arr);
            ListOne <double> ll  = (ListOne <double>)l.Clone();

            //Act
            l.Delete();
            //Assert
            Assert.IsTrue(ll.Beg.Data == 0.2);
        }