public void FetchEmptyDatabaseReturnsEmptyCollection() { DatabaseT <int> sut = new DatabaseT <int>(); int[] numbers = new int[0]; int[] returnedCollection = sut.Fetch(); Assert.IsTrue(numbers.SequenceEqual(returnedCollection)); }
public void FetchingDatabaseReturnsCorrectCollection() { DatabaseT <int> sut = new DatabaseT <int>(Enumerable.Range(0, 16).ToArray()); int[] numbers = Enumerable.Range(0, 16).ToArray(); int[] returnedCollection = sut.Fetch(); Assert.IsTrue(numbers.SequenceEqual(returnedCollection)); }