Table of Contents

Method FormatTypeName

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

FormatTypeName(Type, bool)

Formats a type. This maps built-in C# types to their C# native name (e.g., printing "int" instead of "Int32" or "System.Int32").

public static string FormatTypeName(Type type, bool fullTypeName = false)

Parameters

type Type

The type to get the formatted name of

fullTypeName bool

Set to true to include the namespace; set to false for just the simple type name

Returns

string