public void SearchLineValid_NullLength_ReturnFalse() { ValidationServise service = new ValidationServise(); bool result = service.SearchLineValid("", new Label()); Assert.IsFalse(result); }
public void SearchLineValid_ValidLength_ReturnTrue() { ValidationServise service = new ValidationServise(); bool result = service.SearchLineValid("123456", new Label()); Assert.IsTrue(result); }
private void button_Click(object sender, RoutedEventArgs e) { Search(searchTextBox.Text, sTypeBox.SelectedIndex, (bool)tRadioButton1.IsChecked, vService.SearchLineValid(searchTextBox.Text, errorLabel)); }