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); }
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); }
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); }
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); }