public void ShouldThrowExceptionIfClassDoesNotHaveParameterlessConstructor() { var expected = new ClassWithoutEmptyCtor(33); byte[] serialized = _serializer.Serialize(expected); var actual = _serializer.Deserialize <object>(serialized); Assert.That(actual, Is.EqualTo(expected)); }
protected bool Equals(ClassWithoutEmptyCtor other) { return(Value == other.Value); }
protected bool Equals(ClassWithoutEmptyCtor other) { return Value == other.Value; }