Beispiel #1
0
        public static void event_with_double_payload()
        {
            var    obj             = new Dummy.TestObject();
            double received_double = 0;
            double reference       = float.MaxValue + 42;

            obj.EvtWithDoubleEvent += (object sender, Dummy.TestObjectEvtWithDoubleEventArgs e) => {
                received_double = e.arg;
            };

            obj.EmitEventWithDouble(reference);

            Test.AssertAlmostEquals(reference, received_double);
        }