Exemplo n.º 1
0
        public void IsLeftWordSmallerByCharacters_False_Test()
        {
            // Arrange
            var word1 = "aaab";
            var word2 = "ab";

            Assert.IsFalse(CompareWords.IsLeftWordSmaller(word2, word1));
        }
Exemplo n.º 2
0
        public void IsLeftWordSmallerByCharacters2_Test()
        {
            // Arrange
            var word1 = "aaab";
            var word2 = "ab";

            Assert.IsTrue(CompareWords.IsLeftWordSmaller(word1, word2));
        }
Exemplo n.º 3
0
        public void IsLeftWordSmallerByCharacters_Test()
        {
            // Arrange
            var word1 = "Abba Test";
            var word2 = "Abba Zac";

            // Act and Assert
            Assert.IsTrue(CompareWords.IsLeftWordSmaller(word1, word2));
        }
Exemplo n.º 4
0
        public void IsLeftWordSmaller_ByLength_Test()
        {
            // Arrange
            var word1 = "aa";
            var word2 = "aaa";

            // Act and Assert
            Assert.IsTrue(CompareWords.IsLeftWordSmaller(word1, word2));
        }