July 2019
Intermediate to advanced
410 pages
10h 32m
English
AddInventoryCommandTest was updated by the team to verify the AddInventoryCommand functionality. This test will verify the adding of a single book to an existing inventory. The first part of the test is to define what is expected of the interface, which is only a single prompt to receive the new book name (remember that the TestUserInterface class takes three parameters: expected input, expected messages, and expected warnings):
const string expectedBookName = "AddInventoryUnitTest";var expectedInterface = new Helpers.TestUserInterface( new List<Tuple<string, string>> { new Tuple<string, string>("Enter name:", expectedBookName) }, new List<string>(), new List<string>());
The TestInventoryContext class will be initialized ...
Read now
Unlock full access