public void TestUnexpectedSchemaErrorMessage()
 {
     var exception = new XmlEngineResolutionException(XmlEngineResolutionErrorCode.UnexpectedSchema, "asmVersion");
     Assert.IsTrue(exception.Message.Contains("asmVersion"));
     Assert.IsTrue(exception.Message.Contains("Unexpected schema"));
     Assert.IsFalse(exception.Message.Contains("Undetermined"));
 }
 public void TestLowerErrorMessage()
 {
     var exception = new XmlEngineResolutionException(XmlEngineResolutionErrorCode.MessageVersionTooLow, "admVersion");
     Assert.IsTrue(exception.Message.Contains("admVersion"));
     Assert.IsTrue(exception.Message.Contains("lower"));
     Assert.IsFalse(exception.Message.Contains("higher"));
 }
 public void TestProperties()
 {
     var exception = new XmlEngineResolutionException(XmlEngineResolutionErrorCode.UnexpectedSchema, "asmVersion");
     Assert.AreEqual("asmVersion", exception.AsmVersion);
     Assert.AreEqual(XmlEngineResolutionErrorCode.UnexpectedSchema, exception.Code);
 }