예제 #1
0
        public void TestSetDecimalEventNameVal()
        {
            SetDecimalEvent eve = new SetDecimalEvent(null, -1);

            IQuery query = Mock <IQuery>();

            using (Mocks.Record())
            {
                Expect.Call(query.SetDecimal(null, -1)).Return(query);
            }

            using (Mocks.Playback())
            {
                eve.OnEvent(query);
            }
        }
예제 #2
0
        public void TestSetDateTimeEventPositionVal()
        {
            SetDecimalEvent eve = new SetDecimalEvent(-1, -1);

            IQuery query = Mock <IQuery>();

            using (Mocks.Record())
            {
                Expect.Call(query.SetDecimal(-1, -1)).Return(query);
            }

            using (Mocks.Playback())
            {
                eve.OnEvent(query);
            }
        }