public void NullIsNull()
        {
            var converter = new SKConfettiEmitterBoundsTypeConverter();

            var result = converter.ConvertFromInvariantString(null);

            Assert.Null(result);
        }
        public void CanParseRectValues(string value)
        {
            var converter = new SKConfettiEmitterBoundsTypeConverter();

            var result = converter.ConvertFromInvariantString(value);

            var bounds = Assert.IsType <SKConfettiEmitterBounds>(result);

            Assert.Equal(SKConfettiEmitterSide.Bounds, bounds.Side);
            Assert.Equal(new Rect(12, 34, 56, 78), bounds.Rect);
        }
        public void CanParseSideValues(string value, SKConfettiEmitterSide side)
        {
            var converter = new SKConfettiEmitterBoundsTypeConverter();

            var result = converter.ConvertFromInvariantString(value);

            var bounds = Assert.IsType <SKConfettiEmitterBounds>(result);

            Assert.Equal(side, bounds.Side);
            Assert.Equal(Rect.Zero, bounds.Rect);
        }
        public void ThrowsOnBadValues(string value)
        {
            var converter = new SKConfettiEmitterBoundsTypeConverter();

            Assert.Throws <InvalidOperationException>(() => converter.ConvertFromInvariantString(value));
        }