public void ContainsValue_ListIsEmpty_ReturnsFalse() { SOListBase <T> list = GetTestClass(); T value1 = GetValue1(); bool containsResult = list.Contains(value1); Assert.IsFalse(containsResult); }
public void InsertFirstElement_ListContainsSecondElement_ReturnsFalse() { SOListBase <T> list = GetTestClass(); T value1 = GetValue1(); T value2 = GetValue2(); list.Insert(value1); bool containsResult = list.Contains(value2); Assert.IsFalse(containsResult); }
public void Insert_AddOneElement_ListContainsElement_ReturnsTrue() { SOListBase <T> list = GetTestClass(); T value1 = GetValue1(); list.Insert(value1); bool containsResult = list.Contains(value1); Assert.IsTrue(containsResult); }
public void GetHead_EmptyList_ThrowsException() { SOListBase <T> list = GetTestClass(); T head = list.GetHead(); }