public void IsValid_WithPalindromeWord_ReturnsTrue() { const string word = "civic"; TwoPointersPalindromeStrategy validator = new TwoPointersPalindromeStrategy(); bool result = validator.IsValid(word); Assert.IsTrue(result); }
public void IsValid_WithPalindromeWord_ReturnsTrue() { const string word = "civic"; TwoPointersPalindromeStrategy validator = new TwoPointersPalindromeStrategy(); bool result = validator.IsValid(word); Assert.IsTrue(result); }
public void IsValid_WithEmptyString_ThrowsAnArgumentNullException() { TwoPointersPalindromeStrategy validator = new TwoPointersPalindromeStrategy(); validator.IsValid(string.Empty); }
private void btnTwoPoints_Click(object sender, EventArgs e) { IPalindromeStrategy strategy = new TwoPointersPalindromeStrategy(); RunValidation(strategy); }
public void IsValid_WithNullString_ThrowsAnArgumentNullException() { TwoPointersPalindromeStrategy validator = new TwoPointersPalindromeStrategy(); validator.IsValid(null); }