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:43
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.Globalization;
 3using JetBrains.Annotations;
 4
 5// copied from https://github.com/aspnet/EntityFramework/blob/dev/src/Microsoft.EntityFrameworkCore/Properties/CoreStrin
 6namespace WireMock.Validation
 7{
 8    // [ExcludeFromCodeCoverage]
 9    internal static class CoreStrings
 10    {
 11        /// <summary>
 12        /// The property '{property}' of the argument '{argument}' cannot be null.
 13        /// </summary>
 14        public static string ArgumentPropertyNull([CanBeNull] string property, [CanBeNull] string argument)
 015        {
 016            return string.Format(CultureInfo.CurrentCulture, $"The property '{property}' of the argument '{argument}' ca
 017        }
 18
 19        /// <summary>
 20        /// The string argument '{argumentName}' cannot be empty.
 21        /// </summary>
 22        public static string ArgumentIsEmpty([CanBeNull] string argumentName)
 023        {
 024            return string.Format(CultureInfo.CurrentCulture, $"The string argument '{argumentName}' cannot be empty.", a
 025        }
 26
 27        /// <summary>
 28        /// The entity type '{type}' provided for the argument '{argumentName}' must be a reference type.
 29        /// </summary>
 30        public static string InvalidEntityType([CanBeNull] Type type, [CanBeNull] string argumentName)
 031        {
 032            return string.Format(CultureInfo.CurrentCulture, $"The entity type '{type}' provided for the argument '{argu
 033        }
 34
 35        /// <summary>
 36        /// The collection argument '{argumentName}' must contain at least one element.
 37        /// </summary>
 38        public static string CollectionArgumentIsEmpty([CanBeNull] string argumentName)
 039        {
 040            return string.Format(CultureInfo.CurrentCulture, $"The collection argument '{argumentName}' must contain at 
 041        }
 42    }
 43}