public void SetUp() { // ToDo: Implement SetUp logic here var method = new CodeMemberMethod(); this.binder = method.Assign("myField"); this.message = "Value of message"; this.inner = new System.Exception(); this.testObject = new CodeFieldReferenceException(this.binder, this.message, this.inner); }