public void HandlesAutoProperties() { var objectWithAnAutoProperty = new ClassWithAnAutoProperty { AutoProperty = 10 }; SerialiseAndDeserialise(objectWithAnAutoProperty); }
public void HandlesAutoProperties() { var objectWithAnAutoProperty = new ClassWithAnAutoProperty {AutoProperty = 10}; const string serializedXml = @"<ClassWithAnAutoProperty class=" + "\"Xstream.Tests.Accepatance.AutoPropertiesTest+ClassWithAnAutoProperty, XStream.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\">" + "<AutoProperty>10</AutoProperty></ClassWithAnAutoProperty>"; AssertXmlEquals(serializedXml, xstream.ToXml(objectWithAnAutoProperty)); Assert.AreEqual(objectWithAnAutoProperty, xstream.FromXml(serializedXml)); }
private bool Equals(ClassWithAnAutoProperty other) { return other.AutoProperty == AutoProperty; }
public void HandlesAutoProperties() { var objectWithAnAutoProperty = new ClassWithAnAutoProperty {AutoProperty = 10}; SerialiseAndDeserialise(objectWithAnAutoProperty); }
private bool Equals(ClassWithAnAutoProperty other) { return(other.AutoProperty == AutoProperty); }