Inheritance: System.Web.Hosting.VirtualFile
        public void The_file_should_not_locate_an_invalid_path()
        {
            //arrange
            var file = new AssemblyResourceVirtualFile("~/foo", new AssemblyResource() { Namespace = "MvcContrib.UI.InputBuilder.", TypeToLocateAssembly = typeof(AssemblyResourceProvider) });

            //act
            var result = file.Open();

            //assert
            Assert.IsNull(result);
        }
        public void The_file_should_not_locate_an_invalid_path()
        {
            //arrange
            var file = new AssemblyResourceVirtualFile("~/foo");

            //act
            var result = file.Open();

            //assert
            Assert.IsNull(result);
        }
        public void The_file_should_locate_a_embedded_resource()
        {
            //arrange
            var file = new AssemblyResourceVirtualFile("~/Views/InputBuilders/String.aspx");

            //act
            var result = file.Open();

            //assert
            Assert.IsNotNull(result);
        }
        public void The_file_should_locate_a_embedded_resource()
        {
            //arrange
            var resourceStore = new AssemblyResourceStore(typeof(AssemblyResourceProvider), "", "MvcContrib.UI.InputBuilder");
            var file = new AssemblyResourceVirtualFile("~/Views/InputBuilders/String.aspx", resourceStore);

            //act
            var result = file.Open();

            //assert
            Assert.IsNotNull(result);
        }
        public void The_file_should_not_locate_an_invalid_path()
        {
            //arrange
            var resourceStore = new AssemblyResourceStore(typeof(AssemblyResourceProvider), "", "MvcContrib.UI.InputBuilder");

            var file = new AssemblyResourceVirtualFile("~/foo", resourceStore);

            //act
            var result = file.Open();

            //assert
            Assert.IsNull(result);
        }
        public void The_file_should_locate_a_embedded_resource()
        {
            //arrange
            var file = new AssemblyResourceVirtualFile("~/Views/InputBuilders/String.aspx", new AssemblyResource()
            {
                Namespace = "MvcContrib.UI.InputBuilder",
                TypeToLocateAssembly = typeof(AssemblyResourceProvider),
                VirtualPath = ""
            });

            //act
            var result = file.Open();

            //assert
            Assert.IsNotNull(result);
        }