Exemple #1
0
        public void returns_different_context_after_ShutDown()
        {
            var context = TestSession.SessionContext("foo");

            TestSession.ShutDown();

            Assert.That(context, Is.Not.SameAs(TestSession.SessionContext("foo")));
        }
Exemple #2
0
        protected void BeforeAll()
        {
            _eventBus = StorEvilEvents.Bus;

            _sessionContext = TestSession.SessionContext(GetType().Assembly.Location).GetContextForStory();
            _interpreter    = TestSession.GetInterpreter(GetType().Assembly.Location);

            _scenarioLineExecuter = new ScenarioLineExecuter(_interpreter, _eventBus);
        }
Exemple #3
0
        public void returns_same_context_for_multiple_calls()
        {
            var context = TestSession.SessionContext("foo");

            Assert.That(context, Is.SameAs(TestSession.SessionContext("foo")));
        }