public void ShouldReturnNullForNotRunningApplications()
        {
            TestApplicationManager applicationManager = new TestApplicationManager();

            TestApplication result = applicationManager.GetRunningApplication(this.applicationHost);

            Assert.Null(result);
        }
        public void ShouldReturnApplicationInstanceForRunningApplications()
        {
            TestApplicationManager applicationManager = new TestApplicationManager();
            TestApplication        application        = (TestApplication)ApplicationManager.GetApplicationManager().CreateObject(this.applicationHost.ApplicationId, typeof(TestApplication), this.applicationHost.VirtualPath, Path.GetFullPath(this.applicationHost.PhysicalPath), false, true);

            TestApplication result = applicationManager.GetRunningApplication(this.applicationHost);

            Assert.Equal(application, result);
        }