Beispiel #1
0
        public static void complex_validation_test()
        {
            var txList = new ITransformation[] { new DummyUpConversion(), new DummyDownConversion(), new DummyUpConversion() };

            var cat = new ConcatenatedTransformation <double, Vector2>(txList);

            cat.TransformValue(2).Should().Be(new Vector2(3, 6));
        }
Beispiel #2
0
        public static void simple_typed_validation_test()
        {
            var txList = new ITransformation[] { new DummyUpConversion(), new DummyDownConversion() };

            var cat = new ConcatenatedTransformation <double, Point2>(txList);

            cat.TransformValue(1).Should().Be(new Point2(1, 2));
        }