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 ConvertFromString()
        {
            var    serializer = new PointValueSerializer();
            object obj        = serializer.ConvertFromString("3.14,4.15", null);

            Assert.AreEqual(typeof(Point), obj.GetType());
            Assert.AreEqual(new Point(3.14, 4.15), obj);
        }
        public void ConvertFromStringShouldThrowExceptionWhenStringIsNull()
        {
            var serializer = new PointValueSerializer();

            serializer.ConvertFromString(null, null);
        }
        public void ConvertFromStringShouldThrowExceptionWhenStringHasInvalidFormat()
        {
            var serializer = new PointValueSerializer();

            serializer.ConvertFromString("a,b", null);
        }