Summary

Class:WireMock.Validation.CoreStrings
Assembly:WireMock.Net
File(s):C:\Users\Stef\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:44
Line coverage:0%

Metrics

MethodCyclomatic complexity  NPath complexity  Sequence coverage  Branch coverage  
ArgumentPropertyNull(...)1000
ArgumentIsEmpty(...)1000
InvalidEntityType(...)1000
CollectionArgumentIsEmpty(...)1000

File(s)

C:\Users\Stef\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs

#LineLine coverage
 1using System;
 2using System.Diagnostics.CodeAnalysis;
 3using System.Globalization;
 4using JetBrains.Annotations;
 5
 6// copied from https://github.com/aspnet/EntityFramework/blob/dev/src/Microsoft.EntityFrameworkCore/Properties/CoreStrin
 7namespace WireMock.Validation
 8{
 9    [ExcludeFromCodeCoverage]
 10    internal static class CoreStrings
 11    {
 12        /// <summary>
 13        /// The property '{property}' of the argument '{argument}' cannot be null.
 14        /// </summary>
 15        public static string ArgumentPropertyNull([CanBeNull] string property, [CanBeNull] string argument)
 016        {
 017            return string.Format(CultureInfo.CurrentCulture, $"The property '{property}' of the argument '{argument}' ca
 018        }
 19
 20        /// <summary>
 21        /// The string argument '{argumentName}' cannot be empty.
 22        /// </summary>
 23        public static string ArgumentIsEmpty([CanBeNull] string argumentName)
 024        {
 025            return string.Format(CultureInfo.CurrentCulture, $"The string argument '{argumentName}' cannot be empty.", a
 026        }
 27
 28        /// <summary>
 29        /// The entity type '{type}' provided for the argument '{argumentName}' must be a reference type.
 30        /// </summary>
 31        public static string InvalidEntityType([CanBeNull] Type type, [CanBeNull] string argumentName)
 032        {
 033            return string.Format(CultureInfo.CurrentCulture, $"The entity type '{type}' provided for the argument '{argu
 034        }
 35
 36        /// <summary>
 37        /// The collection argument '{argumentName}' must contain at least one element.
 38        /// </summary>
 39        public static string CollectionArgumentIsEmpty([CanBeNull] string argumentName)
 040        {
 041            return string.Format(CultureInfo.CurrentCulture, $"The collection argument '{argumentName}' must contain at 
 042        }
 43    }
 44}