Beispiel #1
0
        public void Isogram_HoldsTrueForWordWithDuplicatedHypen()
        {
            string str      = "six-year-old";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #2
0
        public void Isogram_HoldsTrueForSpaceSeparatedName()
        {
            string str      = "six year old";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #3
0
        public void Isogram_HoldsTrueForDuplicateCharInMixedCase()
        {
            string str      = "Alphabet";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #4
0
        public void Isogram_HoldsTrueForWordWithHypen()
        {
            string str      = "thumbscrew-japingly";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #5
0
        public void Isogram_HoldsTrueForLongReportedEnglishWord()
        {
            string str      = "subdermatoglyphic";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #6
0
        public void Isogram_HoldsFalseForWordsWithRepeatedLowerCaseCharacter()
        {
            string str      = "eleven";
            bool   expected = false;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #7
0
        public void Isogram_HoldsTrueForLowerCaseCharacter()
        {
            // Arrange
            string str      = "isogram";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #8
0
        public void Isogram_IsTrueForEmptyString()
        {
            // Arrange
            string str      = "";
            bool   expected = true;

            // Act
            // Assert
            Assert.Equal(expected, IsogramCheck.IsIsogram(str));
        }
Beispiel #9
0
 private bool ActualExec(string str)
 {
     return(IsogramCheck.IsIsogram(str));
 }