コード例 #1
0
        public void End()
        {
            var state        = new MockSampleState();
            var sampleObject = new SampleObject(state);

            sampleObject.End();

            state.VerifyEndCalled();
        }
コード例 #2
0
        public void Middle()
        {
            var state        = new MockSampleState();
            var sampleObject = new SampleObject(state);

            sampleObject.Middle();

            state.VerifyMiddleCalled();
        }
コード例 #3
0
        public void Last()
        {
            var state        = new MockSampleState();
            var sampleObject = new SampleObject(state);

            sampleObject.Last();

            state.VerifyLastCalled();
        }
コード例 #4
0
        public void Start()
        {
            var state        = new MockSampleState();
            var sampleObject = new SampleObject(state);

            sampleObject.Start();

            state.VerifyStartCalled();
        }