public void ToResultError_Ok() { var results = new List <IResultError> { new ResultError(ErrorData.CreateErrorListTwoTest()), new ResultError(ErrorData.CreateErrorTest()) }; var result = results.ToResultError(); Assert.True(result.Errors.SequenceEqual(results.SelectMany(resultError => resultError.Errors))); }