public void Constructors2()
 {
     ErrorManager err = new ErrorManager();
     Assert.AreEqual(ErrorMode.ThrowException, err.ErrorMode);
     Assert.AreEqual(0, err.ErrorCount);
     Assert.AreEqual(0, err.Errors.Length);
 }
 public void Constructors()
 {
     ErrorManager err = new ErrorManager(ErrorMode.IgnoreAndContinue);
     Assert.AreEqual(ErrorMode.IgnoreAndContinue, err.ErrorMode);
     Assert.AreEqual(0, err.ErrorCount);
     Assert.AreEqual(0, err.Errors.Length);
 }
Exemple #3
0
 /// <summary>Add the specified ErrorInfo to the contained collection.</summary>
 internal void AddErrors(ErrorManager errors)
 {
     mErrorsArray.AddRange(errors.mErrorsArray);
 }
Exemple #4
0
 /// <summary>Add the specified ErrorInfo to the contained collection.</summary>
 internal void AddErrors(ErrorManager errors)
 {
     mErrorsArray.AddRange(errors.mErrorsArray);
 }
 /// <summary>Add the specified ErrorInfo to the contained collection.</summary>
 internal void AddErrors(ErrorManager errors)
 {
     if (mErrorsArray.Count <= mErrorLimit)
         mErrorsArray.AddRange(errors.mErrorsArray);
 }