コード例 #1
0
 public void InnerException_SomeSourceCodeAndInnerException_Same()
 {
     var exception = new Exception();
     const string sourceCode = "bvcxbvnxbcvxbmjnv";
     var runtimeCompileException = new RuntimeCompileException(sourceCode, exception);
     Assert.That(runtimeCompileException.InnerException, Is.SameAs(exception));
 }
コード例 #2
0
 public void Message_SomeSourceCodeAndInnerException_RightMessage()
 {
     var exception = new Exception();
     const string sourceCode = "bvcxbvnxbcvxbmjnv";
     var runtimeCompileException = new RuntimeCompileException(sourceCode, exception);
     Assert.That(runtimeCompileException.Message, Is.EqualTo("Error during runtime compilation"));
 }