Exemple #1
0
        public void ShouldReturnEmptyStringWhenBothLabelsAreEmpty()
        {
            var emptyLabels   = new string[] { };
            var emptyRequests = new string[] { };
            var requests      = new[] { "A" };
            var labels        = new[] { "ABC 10" };

            Assert.Equal(string.Empty, BookSeller.BookSummary(labels, emptyRequests));
            Assert.Equal(string.Empty, BookSeller.BookSummary(emptyLabels, requests));
            Assert.Equal(string.Empty, BookSeller.BookSummary(emptyLabels, emptyRequests));
        }
Exemple #2
0
 public void ShouldReturnSummationOfEachRequestedCategory(string[] labels, string[] requests, string expected)
 {
     Assert.Equal(expected, BookSeller.BookSummary(labels, requests));
 }