Beispiel #1
0
 public static void AreEqual(GlowFilter expected, GlowFilter actual, string message)
 {
     Assert.AreEqual(expected.BlurX, actual.BlurX, message + ".BlurX");
     Assert.AreEqual(expected.BlurY, actual.BlurY, message + ".BlurY");
     AssertColors.AreEqual(expected.Color, actual.Color, "Color");
     Assert.AreEqual(expected.CompositeSource, actual.CompositeSource);
     Assert.AreEqual(expected.InnerGlow, actual.InnerGlow);
     Assert.AreEqual(expected.Knockout, actual.Knockout);
     Assert.AreEqual(expected.Passes, actual.Passes);
     Assert.AreEqual(expected.Strength, actual.Strength);
 }
Beispiel #2
0
 public static void AreEqual(BevelFilter expected, BevelFilter actual, string message)
 {
     Assert.AreEqual(expected.BlurX, actual.BlurX, message + ".BlurX");
     Assert.AreEqual(expected.BlurY, actual.BlurY, message + ".BlurY");
     AssertColors.AreEqual(expected.ShadowColor, actual.ShadowColor, "ShadowColor");
     AssertColors.AreEqual(expected.HighlightColor, actual.HighlightColor, "HighlightColor");
     Assert.AreEqual(expected.CompositeSource, actual.CompositeSource);
     Assert.AreEqual(expected.InnerShadow, actual.InnerShadow);
     Assert.AreEqual(expected.Knockout, actual.Knockout);
     Assert.AreEqual(expected.Passes, actual.Passes);
     Assert.AreEqual(expected.Strength, actual.Strength);
     Assert.AreEqual(expected.Angle, actual.Angle);
     Assert.AreEqual(expected.Distance, actual.Distance);
     Assert.AreEqual(expected.OnTop, actual.OnTop);
 }
Beispiel #3
0
        public static void AreEqual(ConvolutionFilter expected, ConvolutionFilter actual, string message)
        {
            Assert.AreEqual(expected.Divisor, actual.Divisor);
            Assert.AreEqual(expected.Bias, actual.Bias);

            Assert.AreEqual(expected.MatrixX, actual.MatrixX);
            Assert.AreEqual(expected.MatrixY, actual.MatrixY);
            for (var x = 0; x < actual.MatrixX; x++)
            {
                for (var y = 0; y < actual.MatrixX; y++)
                {
                    Assert.AreEqual(expected.Matrix[y, x], actual.Matrix[y, x]);
                }
            }

            AssertColors.AreEqual(expected.DefaultColor, actual.DefaultColor, "DefaultColor");
            Assert.AreEqual(expected.Reserved, actual.Reserved);
            Assert.AreEqual(expected.Clamp, actual.Clamp);
            Assert.AreEqual(expected.PreserveAlpha, actual.PreserveAlpha);
        }
Beispiel #4
0
 public static void AreEqual(GradientRecordRGBA expected, GradientRecordRGBA actual, string message)
 {
     Assert.AreEqual(expected.Ratio, actual.Ratio, message + ": Ratio");
     AssertColors.AreEqual(expected.Color, actual.Color, message + ": Color");
 }