public void Exists_ResourceDoesNotExist_ReturnsFalse()
        {
            var resolver = new EmbeddedResourceResolver();
            var result   = resolver.Exists(new PathDefinition()
            {
                IsWildcard       = true,
                VirtualPath      = "~/Test/",
                ResourceLocation = Assembly.GetExecutingAssembly().CodeBase
            }, "~/Test/Resources/Imaginary/Master.Designer.cshtml");

            Assert.IsFalse(result);
        }
        public void Exists_ResourceExists_ReturnsTrue()
        {
            var resolver = new EmbeddedResourceResolver();
            var result   = resolver.Exists(new PathDefinition()
            {
                IsWildcard       = true,
                VirtualPath      = "~/Test/",
                ResourceLocation = Assembly.GetExecutingAssembly().CodeBase
            }, "~/Test/Resources/Designer.cshtml");

            Assert.IsTrue(result, "The method returns that resource doesn't exist when it does.");
        }
        public void Exists_ResourceDoesNotExist_ReturnsFalse()
        {
            //Arrange
            var resolver = new EmbeddedResourceResolver();

            //Act
            var result = resolver.Exists(new PathDefinition()
            {
                IsWildcard       = true,
                VirtualPath      = "~/Test/",
                ResourceLocation = Assembly.GetExecutingAssembly().CodeBase
            }, "~/Test/Resources/Imaginary/Designer.cshtml");

            //Assert
            Assert.IsFalse(result, "The method returns that resource exist when it doesn't.");
        }