コード例 #1
0
 public void IsEmptyTest2()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(123);
     myList.AddElement(321);
     myList.AddElement(132);
     myList.DeleteElement(123);
     Assert.AreEqual(false, myList.IsEmpty());
 }
コード例 #2
0
 public void IsNotEmptyTest()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(123);
     Assert.AreEqual(false, myList.IsEmpty());
 }
コード例 #3
0
 public void IsEmptyTest()
 {
     UniqueList myList = new UniqueList();
     Assert.AreEqual(true, myList.IsEmpty());
 }
コード例 #4
0
 public void DeleteNonExistentElementTest()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(9);
     myList.DeleteElement(8);
 }
コード例 #5
0
 public void DeleteElementInEmptyListTest()
 {
     UniqueList myList = new UniqueList();
     myList.DeleteElement(8);
 }
コード例 #6
0
 public void AddExistentElementTest()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(123);
     myList.AddElement(123);
 }
コード例 #7
0
 public void AddElement_UpperBorderTest()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(int.MaxValue);
 }
コード例 #8
0
 public void AddElement_LowerBorderTest()
 {
     UniqueList myList = new UniqueList();
     myList.AddElement(int.MinValue);
 }