Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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"));
 }