public void MyTestMethod11NUnit() { LoggerHandler.WriteToLog("Start MyTestMethod11NUnit"); LoginPageStep.SignIn(user2.Email, user2.Password); //2 InBoxPageStep.SendMassage(user1.Email, "Test6", "Hello"); //3 InBoxPageStep.SignOutAccount(); LoginPageStep.SignIn(user1.Email, user1.Password); //4 InBoxPageStep.MoveMailIntoSpam(user2.Email); InBoxPageStep.GoToSpam(); InBoxPageStep.MoveMailFromSpam(user2.Email); InBoxPageStep.GoToInBoxPage(); Assert.IsTrue(InBoxPageStep.CheckLetter(user2.Email, "Test6")); LoggerHandler.WriteToLog("Finish MyTestMethod11NUnit"); }
public void TestCleanup() { LoggerHandler.WriteToLog("Start TestCleanup"); InBoxPageStep.SignOutAccount(); LoginPageStep.SignIn(user1.Email, user1.Password); InBoxPageStep.GoToSpam(); InBoxPageStep.MoveMailFromSpam(user1.Email); InBoxPageStep.DeleteAllMail(); InBoxPageStep.SignOutAccount(); /*LoginPageStep.SignIn(user2.Email, user2.Password); * InBoxPageStep.DeleteAllMail(); * LoginPageStep.SignIn(user3.Email, user3.Password); * InBoxPageStep.DeleteAllMail(); * InBoxPageStep.SignOutAccount();*/ Step.ClosePage(); }