コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }