コード例 #1
0
        public void GetAuthorsList_ReturnsListOfDistinctAuthors()
        {
            var expectedResult = TestData.Books.Select(book => book.Author).Distinct().ToList();

            var actualResult = _repository.GetAuthorsList();

            Assert.Equal(expectedResult, actualResult);
        }