< Summary

Information
Class: ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings.WrongPropertyValueWarning
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Warnings\SpecificWarnings\WrongPropertyValueWarning.cs
Line coverage
36%
Covered lines: 4
Uncovered lines: 7
Coverable lines: 11
Total lines: 28
Line coverage: 36.3%
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
WrongPropertyValueWarning(...)20
GetMessage(...)05

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Warnings\SpecificWarnings\WrongPropertyValueWarning.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using System.Globalization;
 3
 4namespace ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings
 5{
 6    public abstract class WrongPropertyValueWarning : Warning
 7    {
 8        protected string _propertyName;
 9        protected JToken _propertyValue;
 10
 111        public WrongPropertyValueWarning(JToken token, string value)
 12        {
 113            _propertyName = value;
 114            _propertyValue = token;
 115        }
 16
 17        public override string GetMessage(CultureInfo cultureInfo)
 18        {
 019            return GetMessageWithParams
 020                (
 021                GetType().Name,
 022                cultureInfo,
 023                _propertyName,
 024                _propertyValue.ToString()
 025                );
 26        }
 27    }
 28}