public static void event_with_float_payload() { var obj = new Dummy.TestObject(); float received_float = 0; obj.EvtWithFloatEvent += (object sender, Dummy.TestObjectEvtWithFloatEventArgs e) => { received_float = e.arg; }; obj.EmitEventWithFloat(3.14f); Test.AssertAlmostEquals(3.14f, received_float); }