public void xml_serialize() { var obj = new DataCollection { { "foo", "bar" } }; Assert.True(obj.XmlSerialize().CreateNavigator().Evaluate <bool>("1=count(/data/value[@name='foo'][text()='bar'])")); }
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); }