< Summary

Information
Class: ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings.WrongPropertyValuteJTypeWarning
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Warnings\SpecificWarnings\WrongPropertyValuteJTypeWarning.cs
Line coverage
30%
Covered lines: 3
Uncovered lines: 7
Coverable lines: 10
Total lines: 25
Line coverage: 30%
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
WrongPropertyValuteJTypeWarning(...)20
GetMessage(...)04

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using System.Globalization;
 3
 4namespace ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings
 5{
 6    public class WrongPropertyValuteJTypeWarning : WrongPropertyValueWarning
 7    {
 8        string _detectedDatatype;
 19        public WrongPropertyValuteJTypeWarning(JToken token, string value, string detectedDatatype) : base(token, value)
 10        {
 111            _detectedDatatype = detectedDatatype;
 112        }
 13
 14        public override string GetMessage(CultureInfo cultureInfo)
 15        {
 016            return GetMessageWithParams(
 017                GetType().Name,
 018                cultureInfo,
 019                _propertyName,
 020                _propertyValue,
 021                _detectedDatatype
 022                );
 23        }
 24    }
 25}