Exemple #1
0
        public void IsValidFileResource_WithOneStringParameter_IfThePathExistsAndThePathIsToAnEmptyFile_ShouldReturnFalse()
        {
            const string path = @"Q:\Test";
            var          resourceValidator = new ResourceValidator(this.CreateFileSystem(null, true, path));

            Assert.IsFalse(resourceValidator.IsValidFileResource(path));
        }
Exemple #2
0
        public void IsValidFileResource_WithOneStringParameter_IfThePathExistsAndThePathIsToAFileThatContainsXml_ShouldReturnTrue()
        {
            const string path = @"Q:\Test";
            var          resourceValidator = new ResourceValidator(this.CreateFileSystem("<root />", true, path));

            Assert.IsTrue(resourceValidator.IsValidFileResource(path));
        }