public void testQuote() { string str = "\"abcdef\""; StringTheory theory = new StringTheory("abcdef"); theory.Quote(); Assert.True(str.Equals(theory.ToString()), "str 1 doesn't match the comparison string!"); str = "***abcdef***"; theory = new StringTheory("abcdef"); theory.Quote("***"); Assert.True(str.Equals(theory.ToString()), "str 2 doesn't match the comparison string!"); str = "|abcdef|"; theory = new StringTheory("abcdef"); theory.Quote('|'); Assert.True(str.Equals(theory.ToString()), "str 3 doesn't match the comparison string!"); }