Example #1
0
        public void calls_syssystem_stop_on_each_when_disposing()
        {
            var system = new FakeSerenitySystem();

            system.CreateContext();

            system.Application.ShouldNotBeNull();

            system.Dispose();

            system.SubSystems.Each(x => { x.AssertWasCalled(o => o.Stop()); });
        }
Example #2
0
        public void calls_subsystem_start_on_each()
        {
            var system = new FakeSerenitySystem();

            system.SubSystems.Each(x => { x.AssertWasCalled(o => o.Start()); });
        }