public void PrependValueToEmptyList_ListDontContainsDifferentValue_ReturnsFalse() { T value = this.CreateSampleValue(); DLList <T> list = new DLList <T>(); list.Prepend(value); T differentValue = this.CreateDifferentValue(); bool containsDifferentValue = list.Contains(differentValue); Assert.IsFalse(containsDifferentValue); }
public void PrependValueToEmptyList_ListContainsValue_ReturnsTrue() { T value = this.CreateSampleValue(); DLList <T> list = new DLList <T>(); list.Prepend(value); T valueToSeek = this.CreateSampleValue(); bool listContains = list.Contains(valueToSeek); Assert.IsTrue(listContains); }