public void SetUp()
 {
     this.declaration = new CodeTypeDeclaration("MyClass");
     this.method = new CodeMemberMethod();
     this.testObject = this.method.Assign("myField");
 }
 public void TearDown()
 {
     this.declaration = null;
     this.testObject = null;
     this.method = null;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CodeFieldReferenceException"/> class
 /// </summary>
 /// <param name="binder">The binder associated with this exception.</param>
 /// <param name="message">A <see cref="T:System.String"/> that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
 /// <param name="inner">The exception that is the cause of the current exception. If the innerException parameter is not a <c>null</c> reference, the current exception is raised in a catch block that handles the inner exception.</param>
 public CodeFieldReferenceException(CodeFieldReferenceBinder binder, string message, Exception inner)
     : base(message, inner)
 {
     Guard.NotNull(() => binder, binder);
     this.binder = binder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CodeFieldReferenceException"/> class
 /// </summary>
 /// <param name="binder">The binder associated with this exception.</param>
 public CodeFieldReferenceException(CodeFieldReferenceBinder binder)
 {
     Guard.NotNull(() => binder, binder);
     this.binder = binder;
 }
Example #5
0
 public void TearDown()
 {
     this.declaration = null;
     this.testObject  = null;
     this.method      = null;
 }
Example #6
0
 public void SetUp()
 {
     this.declaration = new CodeTypeDeclaration("MyClass");
     this.method      = new CodeMemberMethod();
     this.testObject  = this.method.Assign("myField");
 }