25 references to Format
Microsoft.DotNet.XUnitAssert.Tests (6)
Sdk\ArgumentFormatterTests.cs (6)
20 Assert.Equal("null", ArgumentFormatter.Format(null)); 227 Assert.Equal(expected, ArgumentFormatter.Format(type)); 528 Assert.Equal(expectedResult, ArgumentFormatter.Format(type)); 537 Assert.Equal("typeof(T)", ArgumentFormatter.Format(parameterType)); 546 Assert.Equal("typeof(TKey)", ArgumentFormatter.Format(parameterTKey)); 549 Assert.Equal("typeof(TValue)", ArgumentFormatter.Format(parameterTValue));
xunit.assert (19)
Sdk\Exceptions\IsAssignableFromException.cs (2)
51 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 53 ArgumentFormatter.Format(actual?.GetType())
Sdk\Exceptions\IsNotAssignableFromException.cs (2)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType())
Sdk\Exceptions\IsNotTypeException.cs (1)
39 var formattedType = ArgumentFormatter.Format(type);
Sdk\Exceptions\RaisesAnyException.cs (1)
40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\RaisesException.cs (3)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 67 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\ThrowsAnyException.cs (3)
52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 54 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 70 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
Sdk\Exceptions\ThrowsException.cs (4)
52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 54 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 80 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 99 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
TypeAsserts.cs (3)
176 throw IsTypeException.ForMismatchedType(ArgumentFormatter.Format(expectedType), null); 181 var expectedTypeName = ArgumentFormatter.Format(expectedType); 182 var actualTypeName = ArgumentFormatter.Format(actualType);