public void ValidateFile_IllFormedXml_ReturnsProblem() { var handler = new LiftFileHandler(); using (var file = new TempFile("<lift>")) { var result = handler.ValidateFile(file.Path, new ConsoleProgress()); Assert.IsNotNull(result); } }
public void ValidateFile_SimpleLift_ReturnsNull() { var handler = new LiftFileHandler(); using(var file = new TempFile("<lift/>")) { var result = handler.ValidateFile(file.Path, new ConsoleProgress()); Assert.IsNull(result); } }
public void CanValidateFile_AcceptsCorrectSet() { var handler = new LiftFileHandler(); Assert.IsTrue(handler.CanValidateFile("foo.lift")); Assert.IsTrue(handler.CanValidateFile("foo.LiFt")); Assert.IsFalse(handler.CanValidateFile("foo.WeSayConfig")); Assert.IsFalse(handler.CanValidateFile("foo.xml")); Assert.IsFalse(handler.CanValidateFile("foo.abc")); }