Example #1
0
        public void ShouldReturnTrue()
        {
            Chap1_StringRotation s = new Chap1_StringRotation();
            bool result            = s.IsRotation("waterbottle", "erbottlewat");

            Assert.True(result);
        }
Example #2
0
        public void ShouldReturnFalse()
        {
            Chap1_StringRotation s = new Chap1_StringRotation();
            bool result            = s.IsRotation("water", "waert");

            Assert.False(result);
        }
Example #3
0
        public void CheckIsSubstring()
        {
            Chap1_StringRotation s = new Chap1_StringRotation();

            Assert.True(s.isSubstring("abcd", "bc"));
        }