public void AddToDirectory_ShouldGetCorrectBool() { //Arrange SCCalc content = new SCCalc(); SCCalcRepository repo = new SCCalcRepository(); //Act bool addResult = repo.AddContentToDirectory(content); //Assert Assert.IsTrue(addResult); }
public void GetDirectory_ShouldReturnCorrectList() { //Arange SCCalc testContent = new SCCalc(); SCCalcRepository repo = new SCCalcRepository(); repo.AddContentToDirectory(testContent); //Act List <SCCalc> testList = repo.GetContent(); bool directoryHasContent = testList.Contains(testContent); //Assert Assert.IsTrue(directoryHasContent); }