public void IsValidTest3()
        {
            //Apply
            var expectedResult  = "YES";
            var successfulInput = "abcdefghhgfedecba";

            //Act
            var SatVS            = new SherlockAndTheValidString();
            var successfulResult = SatVS.IsValid(successfulInput);

            //Assert
            Assert.AreEqual(expectedResult, successfulResult);
        }
        public void IsValidTest2()
        {
            //Apply
            var expectedResult  = "NO";
            var successfulInput = "aabbccddeefghi";

            //Act
            var SatVS            = new SherlockAndTheValidString();
            var successfulResult = SatVS.IsValid(successfulInput);

            //Assert
            Assert.AreEqual(expectedResult, successfulResult);
        }
Exemple #3
0
        public void Do(string inputString, string expectedString)
        {
            var result = SherlockAndTheValidString.IsValid(inputString);

            Assert.AreEqual(expectedString, result);
        }