15 references to FormatTypeName
xunit.assert (15)
EqualityAsserts.cs (4)
277 var expectedTypeName = expectedType == null ? "" : (AssertHelper.IsCompilerGenerated(expectedType) ? "<generated> " : ArgumentFormatter.FormatTypeName(expectedType) + " "); 278 var actualTypeName = actualType == null ? "" : (AssertHelper.IsCompilerGenerated(actualType) ? "<generated> " : ArgumentFormatter.FormatTypeName(actualType) + " "); 791 var expectedTypeName = expectedType == null ? "" : (AssertHelper.IsCompilerGenerated(expectedType) ? "<generated> " : ArgumentFormatter.FormatTypeName(expectedType) + " "); 792 var actualTypeName = actualType == null ? "" : (AssertHelper.IsCompilerGenerated(actualType) ? "<generated> " : ArgumentFormatter.FormatTypeName(actualType) + " ");
Sdk\ArgumentFormatter.cs (5)
195 return string.Format(CultureInfo.CurrentCulture, "typeof({0})", FormatTypeName(value, fullTypeName: true)); 218 return string.Format(CultureInfo.CurrentCulture, "typeof({0})", FormatTypeName(valueAsType, fullTypeName: true)); 267 : string.Format(CultureInfo.CurrentCulture, "Task<{0}>", string.Join(",", typeParameters.Select(t => FormatTypeName(t)))); 530 result = FormatTypeName(typeInfo.GenericTypeArguments[0]) + "?"; 532 result = string.Format(CultureInfo.CurrentCulture, "{0}<{1}>", result, string.Join(", ", typeInfo.GenericTypeArguments.Select(t => FormatTypeName(t))));
Sdk\AssertHelper.cs (2)
541 ArgumentFormatter.FormatTypeName(expected.GetType()), 542 ArgumentFormatter.FormatTypeName(actual.GetType())
Sdk\Exceptions\EquivalentException.cs (2)
256 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(expectedType), expectedType), fullTypeName: true), 258 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(actualType), actualType), fullTypeName: true)
Sdk\Exceptions\NotNullException.cs (1)
39 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type))
Sdk\Exceptions\NullException.cs (1)
52 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)),