Beispiel #1
0
        public void IsValid_WithPalindromeWord_ReturnsTrue()
        {
            const string word = "civic";
            ReserveArrayPalindromeStrategy validator = new ReserveArrayPalindromeStrategy();
            bool result = validator.IsValid(word);

            Assert.IsTrue(result);
        }
        public void IsValid_WithPalindromeWord_ReturnsTrue()
        {
            const string word = "civic";
            ReserveArrayPalindromeStrategy validator = new ReserveArrayPalindromeStrategy();
            bool result = validator.IsValid(word);

            Assert.IsTrue(result);
        }
Beispiel #3
0
        public void IsValid_WithEmptyString_ThrowsAnArgumentNullException()
        {
            ReserveArrayPalindromeStrategy validator = new ReserveArrayPalindromeStrategy();

            validator.IsValid(string.Empty);
        }
 public void IsValid_WithNullString_ThrowsAnArgumentNullException()
 {
     ReserveArrayPalindromeStrategy validator = new ReserveArrayPalindromeStrategy();
     validator.IsValid(null);
 }