annotate Library/LibrarySystem.Tests/LibrarySystemTests.cs @ 42:0d4aff4f699d

Enabled nuget package restore on build
author adminsh@apollo
date Tue, 03 Apr 2012 23:32:40 +0100
parents dbd242eb9c33
children
rev   line source
41
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
1 using LibrarySystem.Core;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
2 using LibrarySystem.Interfaces;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
3 using NUnit.Framework;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
4
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
5 namespace LibrarySystem.Tests
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
6 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
7 [TestFixture]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
8 public class LibraryTests
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
9 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
10 /*
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
11 * Factory that creates:
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
12 * Library with 10 books (2 x Lord of the Flies, 3 x 1984, 5 x Brave New World)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
13 */
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
14 private ILibrary CreateScenario()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
15 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
16 #region Publisher
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
17
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
18 IPublisher penguin = new Publisher() {Name = "Penguin"};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
19
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
20 #endregion
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
21
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
22 #region Publications
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
23
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
24 IPublication lordOfTheFlies = new Publication()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
25 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
26 Author = "William Golding",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
27 ISBN = "0140283331",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
28 Publisher = penguin,
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
29 Title = "Lord of the Flies"
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
30 };
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
31
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
32 IPublication nineteenEightyFour = new Publication()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
33 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
34 Author = "George Orwell",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
35 ISBN = "0452284236",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
36 Title = "Nineteen Eighty-Four"
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
37 };
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
38
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
39 IPublication braveNewWorld = new Publication()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
40 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
41 Author = "Aldous Huxley",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
42 ISBN = "0060850523",
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
43 Title = "Brave New World"
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
44 };
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
45
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
46 #endregion
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
47
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
48 #region Books
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
49
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
50 // Lord of the flies
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
51 IBook book1 = new Book(lordOfTheFlies)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
52 {Id = "0000001", CurrentFee = 1.25m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
53 IBook book2 = new Book(lordOfTheFlies)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
54 {Id = "0000002", CurrentFee = 1.25m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
55 IBook book3 = new Book(lordOfTheFlies)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
56 {Id = "0000003", CurrentFee = 1.25m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
57
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
58 // 1984
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
59 IBook book4 = new Book(nineteenEightyFour)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
60 {Id = "0000004", CurrentFee = 1.5m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
61 IBook book5 = new Book(nineteenEightyFour)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
62 {Id = "0000005", CurrentFee = 1.5m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
63
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
64 // Brave new world
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
65 IBook book6 = new Book(braveNewWorld)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
66 {Id = "0000006", CurrentFee = 1.8m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
67 IBook book7 = new Book(braveNewWorld)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
68 {Id = "0000007", CurrentFee = 1.8m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
69 IBook book8 = new Book(braveNewWorld)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
70 {Id = "0000008", CurrentFee = 1.8m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
71 IBook book9 = new Book(braveNewWorld)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
72 {Id = "0000009", CurrentFee = 1.8m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
73 IBook book10 = new Book(braveNewWorld)
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
74 {Id = "0000010", CurrentFee = 1.8m};
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
75
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
76 #endregion
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
77
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
78 #region Library
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
79
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
80 ILibrary library = new Library();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
81 library.Location = "Leicester Square";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
82 library.AddStock(book1, book2, book3, book4, book5, book6, book7, book8, book9, book10);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
83
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
84 #endregion
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
85
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
86 return library;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
87 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
88
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
89 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
90 public void AddStockShouldIncreaseStockListCountByOne()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
91 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
92 //arrange
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
93 var library = new Library();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
94 var expected = library.StockList.Count + 1;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
95 var dummyBook = new Book(new Publication());
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
96
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
97 //act
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
98 library.AddStock(dummyBook);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
99 var actual = library.StockList.Count;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
100
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
101 //assert
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
102 Assert.AreEqual(expected, actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
103 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
104
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
105 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
106 public void SearchForAvailableBookByIBSNShouldReturnTrue()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
107 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
108 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
109
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
110 // Lord of the flies
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
111 var validISBN = "0140283331";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
112
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
113 var actual = library.IsBookAvailableByISBN(validISBN);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
114
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
115 Assert.IsTrue(actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
116 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
117
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
118 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
119 public void SearchForUnavailableBookByIBSNShouldReturnFalse()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
120 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
121 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
122
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
123 // rubbish data
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
124 var invalidISBN = "X";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
125
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
126 var actual = library.IsBookAvailableByISBN(invalidISBN);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
127
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
128 Assert.IsFalse(actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
129 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
130
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
131 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
132 public void FindBooksByValidSearchTitleString()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
133 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
134 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
135
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
136 // good search string
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
137 var searchString = "Flies";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
138
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
139 // number of Lord of the Flies books expected
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
140 var expected = 3;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
141 var actual = library.FindBooks(searchString).Count;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
142
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
143 Assert.AreEqual(expected, actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
144 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
145
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
146
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
147 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
148 public void FindBooksByValidSearchTitleStringLowerCase()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
149 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
150 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
151
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
152 // good search string
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
153 var searchString = "flies";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
154
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
155 // number of Lord of the Flies books expected
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
156 var expected = 3;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
157 var actual = library.FindBooks(searchString).Count;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
158
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
159 Assert.AreEqual(expected, actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
160 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
161
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
162 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
163 public void FindBooksByValidSearchStringMultiplePublications()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
164 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
165 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
166
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
167 // good search string
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
168 var searchString = "e";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
169
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
170 // number of Lord of the Flies books expected
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
171 var expected = 10;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
172 var actual = library.FindBooks(searchString).Count;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
173
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
174 Assert.AreEqual(expected, actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
175 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
176
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
177 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
178 public void FindBooksByValidSearchAuthorString()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
179 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
180 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
181
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
182 // number of Brave New World books expected
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
183 var expected = 5;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
184 var searchString = "ldous";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
185
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
186 var actual = library.FindBooks(searchString).Count;
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
187
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
188 Assert.AreEqual(expected, actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
189 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
190
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
191 [Test]
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
192 public void FindBooksByInvalidSearchString()
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
193 {
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
194 var library = CreateScenario();
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
195
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
196 // rubbish data
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
197 var searchString = "XYZ";
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
198
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
199 var actual = library.FindBooks(searchString);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
200
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
201 Assert.IsEmpty(actual);
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
202 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
203 }
dbd242eb9c33 Initial wave of TDD development
adminsh@apollo
parents:
diff changeset
204 }