public void Check_VerifyResearcherDB_WithInvalidInput_NoResearcherWithEmailExsits() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.AreEqual(handler.errormessage, "No researcher with this email exists"); }
public void Check_VerifyResearcherDB_WithInvalidEmail_SuccesIsFalse() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.IsFalse(handler.success); }
public void Check_VerifyResearcherDB_WithValidInput_SuccesIsTrue() { //Act uut = new RetrieveAccountHandler(mockContext.Object); var handler = uut.VerifyResearcherDB("*****@*****.**"); //Assert Assert.IsTrue(handler.success); }