Пример #1
0
        public void FetchEmptyDatabaseReturnsEmptyCollection()
        {
            DatabaseT <int> sut = new DatabaseT <int>();

            int[] numbers = new int[0];

            int[] returnedCollection = sut.Fetch();

            Assert.IsTrue(numbers.SequenceEqual(returnedCollection));
        }
Пример #2
0
        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));
        }