public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var virtualDirectory = WebAdministrationFactory.CreateVirtualDirectory();
            var sut = new VirtualDirectoryConfigurer(virtualDirectory);

            Assert.Throws<DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var virtualDirectory = WebAdministrationFactory.CreateVirtualDirectory();
            var sut = new VirtualDirectoryConfigurer(virtualDirectory);

            Assert.Throws <DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_SetsThePhysicalPath()
        {
            var virtualDirectory = WebAdministrationFactory.CreateVirtualDirectory();
            var sut = new VirtualDirectoryConfigurer(virtualDirectory);

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

            Assert.Equal("C:\\", virtualDirectory.PhysicalPath);
        }
        public void OnPhysicalPath_SetsThePhysicalPath()
        {
            var virtualDirectory = WebAdministrationFactory.CreateVirtualDirectory();
            var sut = new VirtualDirectoryConfigurer(virtualDirectory);

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

            Assert.Equal("C:\\", virtualDirectory.PhysicalPath);
        }