public void MyTestMethod1NUnit() { LoggerHandler.WriteToLog("Start MyTestMethod1NUnit"); //1 LoginPageStep.SignIn(user2.Email, user2.Password); //2 InBoxPageStep.SendMassage(user1.Email, "Test", Serves.GetCountry()); //3 InBoxPageStep.SignOutAccount(); LoginPageStep.SignIn(user1.Email, user1.Password); //4 InBoxPageStep.MoveMailIntoSpam(user2.Email); //5 InBoxPageStep.SignOutAccount(); LoginPageStep.SignIn(user2.Email, user2.Password); //6 InBoxPageStep.SendMassage(user1.Email, "Test2", "Hello"); //7 InBoxPageStep.SignOutAccount(); LoginPageStep.SignIn(user1.Email, user1.Password); //8 InBoxPageStep.GoToSpam(); //assert Assert.IsTrue(InBoxPageStep.CheckLetter(user2.Email, "Test2")); //clear LoggerHandler.WriteToLog("Finish MyTestMethod1NUnit"); }
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"); }