public void VerifySaveToDisc() { //Arrange var uTest = "www.duh.com"; var req = new Request(url: uTest); var rP = new RequestPersister(); //Act rP.SaveToDisc(_path, req); //Assert Assert.IsTrue(Directory.GetFiles(_path).Length > 0); }
public void VerifyRetrieveFromDisc() { //Arrange var uTest = "www.duh.com"; var req = new Request(url: uTest); var rP = new RequestPersister(); //Act rP.SaveToDisc(_path,req); var result = rP.RetrieveFromDisc(Directory.GetFiles(_path)[0]); //Assert Assert.IsTrue(result.Url == uTest); }