public void op_ToXml() { var obj = new Record<int> { Value = 123 }; var expected = 123.XmlSerialize(); var actual = obj.ToXml(); Assert.Equal(expected, actual); }
public void op_ToXml_whenNullValue() { var obj = new Record<string> { Value = null }; Assert.Null(obj.ToXml()); }