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)); }
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)); }