public void TestGetPublisher() { ProcessState processState = new ProcessState(catalog, "Znak", 1990, "Good"); String publisher = processState.getPublisher(); Assert.AreEqual(publisher, "Znak"); }
public void ReadProcessStateTest() { DataChamber data = new DataChamber(); DefaultDataGeneration filler = new DefaultDataGeneration(); DatabaseActions test = new DatabaseActions(data, filler); ProcessState readProcessState = test.ReadProcessState(3); Assert.AreEqual(readProcessState.getCatalog().getAuthorsName(), "Harper"); Assert.AreEqual(readProcessState.getCatalog().getAuthorsSurname(), "Lee"); Assert.AreEqual(readProcessState.getCatalog().getTitle(), "To Kill a Mockingbird"); Assert.AreEqual(readProcessState.getCatalog().getPublicationDate(), 1960); Assert.AreEqual(readProcessState.getCatalog().getKey(), 1); Assert.AreEqual(readProcessState.getPublisher(), "Znak"); Assert.AreEqual(readProcessState.getBookState(), "Bad"); Assert.AreEqual(readProcessState.getReleaseDate(), 2001); }