Exemple #1
0
        public static void event_with_struct_complex_payload()
        {
            var obj = new Dummy.TestObject();

            Dummy.StructComplex received_struct = default(Dummy.StructComplex);

            obj.EvtWithStructComplexEvent += (object sender, Dummy.TestObjectEvtWithStructComplexEventArgs e) => {
                received_struct = e.arg;
            };

            Dummy.StructComplex sent_struct = StructHelpers.structComplexWithValues();

            obj.EmitEventWithStructComplex(sent_struct);

            Test.AssertEquals(sent_struct.Fobj, received_struct.Fobj);
        }