public void IsRotationOfTwo_ThreeLetters() { IsRotationOfTwo isRotation = new IsRotationOfTwo(); bool result = isRotation.isRotation("abc", "cab"); Assert.True(result); result = isRotation.isRotation("abc", "bca"); Assert.True(result); }
public void IsRotationOfTwo_Not() { IsRotationOfTwo isRotation = new IsRotationOfTwo(); bool result = isRotation.isRotation("geeksforgeeks", "geeksgeeksfor"); Assert.False(result); }
public void IsRotationOfTwo() { IsRotationOfTwo isRotation = new IsRotationOfTwo(); bool result = isRotation.isRotation("amazon", "azonam"); Assert.True(result); }