private static void CheckErrorDescription(ErrorDescription result) { Assert.Equal(ID, result.Id); Assert.Equal(GRAVITY, result.Gravity); Assert.Equal(1, result.Args.Length); Assert.Equal(MESSAGE, result.Args[0]); }
/// <summary>Adds the specified error.</summary> /// <param name="error" >The error.</param> private void Add(ErrorDescription error) { //Check if this Error with this gravity exist. // if (!this.Errors.Any(foo => foo.Id == error.Id && foo.Gravity == error.Gravity)) this.Errors.Add(error); }