コード例 #1
0
        public void TestSetAnsiStringEventPositionVal()
        {
            SetAnsiStringEvent eve   = new SetAnsiStringEvent(-1, "");
            IQuery             query = Mock <IQuery>();

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

            using (Mocks.Playback())
            {
                eve.OnEvent(query);
            }
        }
コード例 #2
0
        public void TestSetAnsiStringEventNameVal()
        {
            SetAnsiStringEvent eve = new SetAnsiStringEvent(null, "");

            IQuery query = Mocks.Stub <IQuery>();

            using (Mocks.Record())
            {
                Expect.Call(query.SetAnsiString(null, "")).Return(query);
            }

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