コード例 #1
0
        /// <summary>
        ///     Event handler method for logging compilation errors and warnings, <c>fn:trace</c> and <c>xsl:message</c>
        /// </summary>
        /// <param name = "sender">The sender.</param>
        /// <param name = "e">The <see cref = "XmlPrime.CompilationErrorEventArgs" /> instance containing the event data.</param>
        protected void OnCompilationError(object sender, [NotNull] CompilationErrorEventArgs e)
        {
            Assert.ArgumentNotNull(e, "e");

            Exception innerException = e.CompilationError;

            LogXdmException(e.Severity, innerException);
        }
コード例 #2
0
 private void StartUpCompilationError(object sender, CompilationErrorEventArgs e)
 {
     Assert.Fail(e.Exception.ToString());
 }
コード例 #3
0
 private void GetRootPathStartUpCompilationError(object sender, CompilationErrorEventArgs e)
 {
     Assert.IsInstanceOf<DirectoryNotFoundException>(e.Exception);
 }