public void TestToString() { HashMap <Object, Object> m = new HashMap <Object, Object>(); m.Put(m, m); String result = m.ToString(); Assert.IsTrue(result.IndexOf("(this") > -1, "should contain self ref"); }
public void TestToString() { HashMap <Object, Object> m = new HashMap <Object, Object>(); m.Put(m, m); String result = m.ToString(); Assert.IsTrue(result.IndexOf("(this") > -1, "should contain self ref"); }