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

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

            Assert.False(result);
        }
Ejemplo n.º 3
0
        public void CheckIsSubstring()
        {
            Chap1_StringRotation s = new Chap1_StringRotation();

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