< Summary

Information
Class: ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings.UnknownPropertyWarning
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\ErrorsAndWarnings\Warnings\SpecificWarnings\UnknownPropertyWarning.cs
Line coverage
44%
Covered lines: 4
Uncovered lines: 5
Coverable lines: 9
Total lines: 23
Line coverage: 44.4%
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
UnknownPropertyWarning(...)30
GetMessage(...)04

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using System.Globalization;
 3
 4namespace ValidateLib.ErrorsAndWarnings.Warnings.SpecificWarnings
 5{
 6    public class UnknownPropertyWarning : Warning
 7    {
 18        public JProperty UnknownProperty { get; set; }
 19        public UnknownPropertyWarning(JProperty jProperty)
 10        {
 111            UnknownProperty = jProperty;
 112        }
 13
 14        public override string GetMessage(CultureInfo cultureInfo)
 15        {
 016            return GetMessageWithParams(
 017                nameof(UnknownPropertyWarning),
 018                cultureInfo,
 019                UnknownProperty.ToString()
 020                );
 21        }
 22    }
 23}