Пример #1
0
        public void ContainsValue_ListIsEmpty_ReturnsFalse()
        {
            SOListBase <T> list = GetTestClass();
            T    value1         = GetValue1();
            bool containsResult = list.Contains(value1);

            Assert.IsFalse(containsResult);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public void Insert_AddOneElement_ListContainsElement_ReturnsTrue()
        {
            SOListBase <T> list = GetTestClass();
            T value1            = GetValue1();

            list.Insert(value1);

            bool containsResult = list.Contains(value1);

            Assert.IsTrue(containsResult);
        }
Пример #4
0
 public void GetHead_EmptyList_ThrowsException()
 {
     SOListBase <T> list = GetTestClass();
     T head = list.GetHead();
 }