Ejemplo n.º 1
0
        public void Version_string_()
        {
            var testFrameworkManager = MockRepository.GenerateStub<ITestFrameworkManager>();
            var aboutController = new AboutController(testFrameworkManager);

            Assert.StartsWith(aboutController.Version, "Gallio Icarus - Version");
        }
Ejemplo n.º 2
0
        public void TestFrameworks_should_come_from_TestFrameworkManager()
        {
            var testFrameworkManager = RuntimeAccessor.ServiceLocator.Resolve<ITestFrameworkManager>();
            var aboutController = new AboutController(testFrameworkManager);

            Assert.AreEqual(testFrameworkManager.TestFrameworkHandles.Count, aboutController.TestFrameworks.Count);
        }