public void ConstructWithParametersBinderTest() { this.testObject = new CodeTypeReferenceException(this.binder); Assert.IsNull(testObject.InnerException); var expectedMsg = "Exception of type \'" + typeof(CodeTypeReferenceException) + "\' was thrown."; Assert.AreEqual(expectedMsg, testObject.Message); Assert.Throws <ArgumentNullException>(() => new CodeTypeReferenceException(null)); }
public void SetUp() { // ToDo: Implement SetUp logic here var method = new CodeMemberMethod(); this.binder = method.StaticClass("ReferencedClass"); this.message = "Value of message"; this.inner = new System.Exception(); this.testObject = new CodeTypeReferenceException(this.binder, this.message, this.inner); }