public void testContract() { string str = "abcdef"; StringTheory theory = new StringTheory("abcdefghijklmnopqrstuvwxyz"); theory.Contract(6); Assert.True(str.Equals(theory.ToString()), "str doesn't match the comparison string!"); }