private void Inputs_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { CheckInputs.Focus(); } }
public void CheckInputs_CheckUsernamePassword_ReturnsFalse() { string text = "123456789123456789123456"; var result = CheckInputs.CheckUsernamePassword(text); Assert.IsFalse(result); }
public void CheckInputs_CheckSalary_ReturnsFalse() { string salary = "3.500"; var result = CheckInputs.CheckSalary(salary); Assert.IsFalse(result); }
public void CheckInputs_CheckUsernamePassword_ReturnsTrue() { string text = "Matei"; var result = CheckInputs.CheckUsernamePassword(text); Assert.IsTrue(result); }