public void testExpand() { string str = "abcdef "; StringTheory theory = new StringTheory("abcdef"); theory.Expand(10); Assert.True(str.Equals(theory.ToString()), "str doesn't match the comparison string!"); str = "abcdefyyyy"; theory = new StringTheory("abcdef"); theory.Expand(10, 'y'); Assert.True(str.Equals(theory.ToString()), "custom char didn't take"); }