Beispiel #1
0
        public void Can_Parse_KeySpline_Via_TypeConverter(string input)
        {
            var conv = new KeySplineTypeConverter();

            var keySpline = (KeySpline)conv.ConvertFrom(input);

            Assert.Equal(1, keySpline.ControlPointX1);
            Assert.Equal(2, keySpline.ControlPointY1);
            Assert.Equal(3, keySpline.ControlPointX2);
            Assert.Equal(4, keySpline.ControlPointY2);
        }
Beispiel #2
0
        public void Can_Handle_Invalid_String_KeySpline_Via_TypeConverter(string input)
        {
            var conv = new KeySplineTypeConverter();

            Assert.ThrowsAny <Exception>(() => (KeySpline)conv.ConvertFrom(input));
        }