コード例 #1
0
        public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut = new ApplicationConfigurer(application);

            Assert.Throws<DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
コード例 #2
0
        public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut         = new ApplicationConfigurer(application);

            Assert.Throws <DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
コード例 #3
0
        public void OnPhysicalPath_SetsTheApplicationsVirtualDirectoryPhysicalPath()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut = new ApplicationConfigurer(application);

            sut.OnPhysicalPath(@"C:\");

            Assert.Equal(@"C:\", application.VirtualDirectory().PhysicalPath);
        }
コード例 #4
0
        public void OnPhysicalPath_SetsTheApplicationsVirtualDirectoryPhysicalPath()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut         = new ApplicationConfigurer(application);

            sut.OnPhysicalPath(@"C:\");

            Assert.Equal(@"C:\", application.VirtualDirectory().PhysicalPath);
        }