예제 #1
0
        private void AssertFalse(string s1, string s2, IStringRotationChecker stringRotationChecker)
        {
            bool expected = false;
            bool actual   = stringRotationChecker.IsRotatedString(s1, s2);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        private void IsStringRotation(IStringRotationChecker stringRotationChecker)
        {
            string s1 = "iamastring";
            string s2 = "astringiam";

            bool expected = true;
            bool actual   = stringRotationChecker.IsRotatedString(s1, s2);

            Assert.AreEqual(expected, actual);
        }