< Summary

Information
Class: ValidateLib.ErrorsAndWarnings.Errors.GeneralErrorWithErrorInfo
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Errors\GeneralErrorWithErrorInfo.cs
Line coverage
11%
Covered lines: 1
Uncovered lines: 8
Coverable lines: 9
Total lines: 21
Line coverage: 11.1%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBlocks covered Blocks not covered
GeneralErrorWithErrorInfo(...)20
GetMessage(...)015

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Errors\GeneralErrorWithErrorInfo.cs

#LineLine coverage
 1using System.Globalization;
 2
 3namespace ValidateLib.ErrorsAndWarnings.Errors
 4{
 5    public class GeneralErrorWithErrorInfo : GeneralError
 6    {
 17        public GeneralErrorWithErrorInfo(params object?[] parameters) : base(parameters) { }
 8        public override string GetMessage(CultureInfo cultureInfo)
 9        {
 010            object?[] combinedParams = new object?[_parameters.Length + 1];
 011            combinedParams[0] = ErrorInfo?.tableDescriptor?.url?._value;
 012            Array.Copy(_parameters, 0, combinedParams, 1, _parameters.Length);
 13
 014            return GetMessageWithParams(
 015                GetType().Name,
 016                cultureInfo,
 017                combinedParams
 018                );
 19        }
 20    }
 21}