public void TestSetIntegerEventPositionVal() { SetIntegerEvent eve = new SetIntegerEvent(-1, 1); IQuery query = Mock <IQuery>(); using (Mocks.Record()) { Expect.Call(query.SetInt32(-1, 1)).Return(query); } using (Mocks.Playback()) { eve.OnEvent(query); } }
void OnSetIntegerEvent(SetIntegerEvent e) => SetInteger(e.name, e.value);