Пример #1
0
        public void AddTestCaseMustPass()
        {
            var testCase = new Mock <ITestCase>();
            var engine   = new TestExecutionEngine(_driver.Object, _reporter.Object);
            var result   = engine.AddTestCase(testCase.Object);

            Assert.NotNull(result);
        }
Пример #2
0
        public void AddTestCaseNullCheck()
        {
            var engine = new TestExecutionEngine(_driver.Object, _reporter.Object);

            Assert.Throws <ArgumentNullException>(() => engine.AddTestCase(null));
        }