Esempio n. 1
0
        public void ShouldExecute_Dispose_Correctly()
        {
            var host = new UtilityHost();

            CreateApplication();
            eventFired = false;
            host.Init(application);
            WebCoreEvents.Instance.HostStop += Instance_Fired;
            host.Dispose();
            WebCoreEvents.Instance.HostStop -= Instance_Fired;

            Assert.IsTrue(eventFired);
        }