Пример #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);
        }