public void op_GetHashCode() { var obj = new DataCollection(); var expected = obj.ToString().GetHashCode(); var actual = obj.GetHashCode(); Assert.Equal(expected, actual); }
public void op_ToString() { var obj = new DataCollection { { "name1", "value1" }, { "name2", "value2" } }; var expected = obj.XmlSerialize().CreateNavigator().OuterXml; var actual = obj.ToString(); Assert.Equal(expected, actual); }