public void Test2() { string Email = "*****@*****.**"; OtpCreation otpCreation = new OtpCreation(); bool flag = otpCreation.CheckEmail(Email); Assert.Equal(flag, true); }
public void Test1() { OtpCreation ob1 = new OtpCreation(); string s1 = ob1.GenerateOtp(); string s2 = ob1.GenerateOtp(); bool unique = false; if (s1 != s2) { unique = true; } Assert.Equal(unique, true); }