示例#1
0
 private void Inputs_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         CheckInputs.Focus();
     }
 }
示例#2
0
        public void CheckInputs_CheckUsernamePassword_ReturnsFalse()
        {
            string text   = "123456789123456789123456";
            var    result = CheckInputs.CheckUsernamePassword(text);

            Assert.IsFalse(result);
        }
示例#3
0
        public void CheckInputs_CheckSalary_ReturnsFalse()
        {
            string salary = "3.500";
            var    result = CheckInputs.CheckSalary(salary);

            Assert.IsFalse(result);
        }
示例#4
0
        public void CheckInputs_CheckUsernamePassword_ReturnsTrue()
        {
            string text   = "Matei";
            var    result = CheckInputs.CheckUsernamePassword(text);

            Assert.IsTrue(result);
        }