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);
        }
예제 #2
0
 public SKConfettiEmitterBounds(SKConfettiEmitterSide side)
     : this(Rect.Zero, side)
 {
 }
예제 #3
0
 private SKConfettiEmitterBounds(Rect rect, SKConfettiEmitterSide side)
 {
     Rect = rect;
     Side = side;
 }
예제 #4
0
 public ParticleEmitterBounds(SKConfettiEmitterSide side)
     : this(SKRect.Empty, side)
 {
 }
예제 #5
0
 private ParticleEmitterBounds(SKRect rect, SKConfettiEmitterSide side)
 {
     Rect = rect;
     Side = side;
 }