public void Setup() { TestDetails = new TestDetailsView(); TestDetails.Test = new Test(new TestCase("Foo", "foo.pmlobj"), "bar"); TestNameLabel = TestDetails.FindControl <Label>("TestNameLabel"); StatusLabel = TestDetails.FindControl <IconLabel>("TestResultIconLabel"); ElapsedTimeLabel = TestDetails.FindControl <Label>("ElapsedTimeLabel"); ErrorMessageLabel = TestDetails.FindControl <Label>("ErrorMessageLabel"); }
public void Setup() { TestCase = new TestCase("Test", "test.pmlobj"); TestCase.Tests.Add("one"); TestCase.Tests.Add("two"); TestCase.Tests.Add("three"); RunnerControl = new TestRunnerControl(Mock.Of <TestCaseProvider>(), Mock.Of <AsyncTestRunner>(), Mock.Of <SettingsProvider>()); TestSummary = RunnerControl.FindControl <TestSummaryView>("TestSummary"); TestDetails = RunnerControl.FindControl <TestDetailsView>("TestDetails"); TestList = RunnerControl.FindControl <TestListView>("TestList"); TestList.TestCases.Add(TestCase); Model = TestList.GetModel(); }