public static void event_with_struct_payload() { test.ITesting obj = new test.Testing(); test.StructSimple received_struct = default(test.StructSimple); obj.EvtWithStructEvt += (object sender, EvtWithStructEvt_Args e) => { received_struct = e.arg; }; test.StructSimple sent_struct = default(test.StructSimple); sent_struct.Fstring = "Struct Event"; obj.EmitEventWithStruct(sent_struct); Test.AssertEquals(sent_struct.Fstring, received_struct.Fstring); }