public void GivenEmailId_WhenIsNotProper_ShouldReturnFalse()
        {
            UserRegistrationMain userRegistration = new UserRegistrationMain();
            bool result = userRegistration.ValidateEmail("dhagepratiksha16@gmail");

            Assert.IsFalse(result);
        }
        public void GivenEmails_WhenChecked_ShouldReturnExpectedResult()
        {
            UserRegistrationMain userRegistration = new UserRegistrationMain();

            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsTrue(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsFalse(userRegistration.ValidateEmail("abc"));
            Assert.IsFalse(userRegistration.ValidateEmail("[email protected]"));
            Assert.IsFalse(userRegistration.ValidateEmail("[email protected]"));
            Assert.IsFalse(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsFalse(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsFalse(userRegistration.ValidateEmail("abc()*@gmail.com"));
            Assert.IsFalse(userRegistration.ValidateEmail("abc@%*.com"));
            Assert.IsFalse(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsFalse(userRegistration.ValidateEmail("*****@*****.**"));
            Assert.IsFalse(userRegistration.ValidateEmail("abc@[email protected]"));
            Assert.IsFalse(userRegistration.ValidateEmail("[email protected]"));
            Assert.IsFalse(userRegistration.ValidateEmail("*****@*****.**"));
        }