public void RoundTripConvert() { var serializer = new PointValueSerializer(); var Point = new Point(1.234, 2.678); var obj = serializer.ConvertFromString(serializer.ConvertToString(Point, null), null); Assert.AreEqual(Point, obj); }
public void ConvertToStringShouldThrowExceptionWhenInvalidType() { var serializer = new PointValueSerializer(); serializer.ConvertToString(10, null); }