public void ConstructWithParametersBinderTest()
        {
            this.testObject = new CodeFieldReferenceException(this.binder);
            Assert.IsNull(testObject.InnerException);
            var expectedMsg = "Exception of type \'" + typeof(CodeFieldReferenceException) + "\' was thrown.";
            Assert.AreEqual(expectedMsg,testObject.Message);

            Assert.Throws<ArgumentNullException>(() => new CodeFieldReferenceException(null));
        }
        public void ConstructWithParametersBinderTest()
        {
            this.testObject = new CodeFieldReferenceException(this.binder);
            Assert.IsNull(testObject.InnerException);
            var expectedMsg = "Exception of type \'" + typeof(CodeFieldReferenceException) + "\' was thrown.";

            Assert.AreEqual(expectedMsg, testObject.Message);

            Assert.Throws <ArgumentNullException>(() => new CodeFieldReferenceException(null));
        }
        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);
        }
 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);
 }