/// <summary>
 /// Initializes a new instance of the <see cref="CodeRushProxy"/> class.
 /// </summary>
 public CodeRushProxy()
 {
   this.solution = GetNonNull(CodeRush.Solution, "CodeRush.Solution.");
   this.documents = GetNonNull(CodeRush.Documents, "CodeRush.Documents");
   this.file = GetNonNull(CodeRush.File, "CodeRush.File");
   this.textBuffers = GetNonNull(CodeRush.TextBuffers, "CodeRush.TextBuffers");
   this.language = GetNonNull(CodeRush.Language, "CodeRush.Language");
   this.markers = GetNonNull(CodeRush.Markers, "CodeRush.Markers");
   var source = GetNonNull(CodeRush.Source, "CodeRush.Source");
   this.source = new SourceModelProxy(source);
   this.undoStack = GetNonNull(CodeRush.UndoStack, "CodeRush.UndoStack");
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeRushProxy"/> class.
        /// </summary>
        public CodeRushProxy()
        {
            this.solution    = GetNonNull(CodeRush.Solution, "CodeRush.Solution.");
            this.documents   = GetNonNull(CodeRush.Documents, "CodeRush.Documents");
            this.file        = GetNonNull(CodeRush.File, "CodeRush.File");
            this.textBuffers = GetNonNull(CodeRush.TextBuffers, "CodeRush.TextBuffers");
            this.language    = GetNonNull(CodeRush.Language, "CodeRush.Language");
            this.markers     = GetNonNull(CodeRush.Markers, "CodeRush.Markers");
            var source = GetNonNull(CodeRush.Source, "CodeRush.Source");

            this.source    = new SourceModelProxy(source);
            this.undoStack = GetNonNull(CodeRush.UndoStack, "CodeRush.UndoStack");
        }