コード例 #1
0
        public void GivenPassword_WhenNull_ShouldThrowException()
        {
            UserRegistrationAnalysis validator = new UserRegistrationAnalysis();

            Assert.AreEqual(false, validator.password_Analysis(null));
        }
コード例 #2
0
        public void givenPassword_whenNotHaveMandetoryField_shouldReturnFalse()
        {
            UserRegistrationAnalysis useranalysis = new UserRegistrationAnalysis();

            Assert.AreEqual(false, useranalysis.password_Analysis("rahul"));
        }