コード例 #1
0
        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);
            }
        }
コード例 #2
0
 void OnSetIntegerEvent(SetIntegerEvent e) => SetInteger(e.name, e.value);