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)); }
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")); }