Table of Contents

Class MissingMockStringLocalizationException

Namespace
Bunit.TestDoubles
Assembly
bunit.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>
.NET Foundation

Supported by the .NET Foundation.