Table of Contents

Class MissingMockStringLocalizationException

Namespace
Bunit.TestDoubles
Assembly
Bunit.Web.dll

Exception use to indicate that a IStringLocalizer is required by a test but was not provided.

public sealed class MissingMockStringLocalizationException : Exception, ISerializable
Inheritance
MissingMockStringLocalizationException
Implements
Inherited Members
Extension Methods

Constructors

MissingMockStringLocalizationException(string, params object?[])

Initializes a new instance of the MissingMockStringLocalizationException class with the method name and arguments used in the invocation.

public MissingMockStringLocalizationException(string methodName, params object?[] arguments)

Parameters

methodName string

The method that was called on the localizer.

arguments object[]

The arguments that were passed in.

Properties

Arguments

Gets the arguments that were passed into the localizer.

public IReadOnlyList<object?> Arguments { get; }

Property Value

IReadOnlyList<object>

Methods

GetObjectData(SerializationInfo, StreamingContext)

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.