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
typeTypeThe type to get the formatted name of
fullTypeNameboolSet to
trueto include the namespace; set tofalsefor just the simple type name