コード例 #1
0
        protected override void setUp()
        {
            Services.PartialMockTheClassUnderTest();

            MockFor <ITestService>().Expect(x => x.CreatePreview(theTest)).Return(theHtml);

            ThePresenter.ChangeModeTo(Mode.Preview);
        }
コード例 #2
0
        protected override void setUp()
        {
            Services.PartialMockTheClassUnderTest();

            MockFor <ITestStateManager>().Expect(x => x.CurrentXml).Return(theXml);

            ThePresenter.ChangeModeTo(Mode.Xml);
        }
コード例 #3
0
        protected override void setUp()
        {
            Services.PartialMockTheClassUnderTest();

            theTest.LastResult = new TestResult()
            {
                Html = "<html />"
            };

            ThePresenter.ChangeModeTo(Mode.Results);
        }
コード例 #4
0
 protected override void setUp()
 {
     ThePresenter.ChangeModeTo(Mode.Results);
 }