public void A_set_of_integers_should_be_properly_serialized() { var message = new PrimitiveSetClass { Values = { 1, 2, 3 } }; TestSerialization(message); }
public bool Equals(PrimitiveSetClass other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (ReferenceEquals(other.Values, Values)) { return(true); } if (other.Values == null && Values != null) { return(false); } if (other.Values != null && Values == null) { return(false); } if (other.Values != null && Values != null) { if (other.Values.Count != Values.Count) { return(false); } return(other.Values.SetEquals(Values)); } return(true); }