102 references to Ellipsis
Microsoft.DotNet.XUnitAssert.Tests (93)
AsyncCollectionAssertsTests.cs (6)
430
$"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
770
Assert.Equal(message.Replace("$$ELLIPSIS$$", ArgumentFormatter.
Ellipsis
), ex.Message);
1146
$"Expected: Not {expectedType.PadRight(padding)}[1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
1147
$"Actual: {actualType.PadRight(padding)}[1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]",
1433
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]",
1527
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
CollectionAssertsTests.cs (11)
464
$"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
872
Assert.Equal(message.Replace("$$ELLIPSIS$$", ArgumentFormatter.
Ellipsis
), ex.Message);
1026
Assert.Equal(message.Replace("$$ELLIPSIS$$", ArgumentFormatter.
Ellipsis
), ex.Message);
1330
$"Expected: [[\"a\"] = 1, [\"be\"] = 2, [\"c\"] = 3, [\"d\"] = 4, [\"e\"] = 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
1331
$"Actual: [[\"a\"] = 1, [\"ba\"] = 2, [\"c\"] = 3, [\"d\"] = 4, [\"e\"] = 5, {ArgumentFormatter.
Ellipsis
}]",
1746
$"Expected: Not int[] [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
1747
$"Actual: List<int> [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]",
2330
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]",
2404
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
2465
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]",
2559
$"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
EqualityAssertsTests.cs (5)
1047
$"Expected: UnsafeEnumerable [{ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
1711
$"Expected: [{ArgumentFormatter.
Ellipsis
}, 2, 3, 4, 5]" + Environment.NewLine +
1712
$"Actual: [{ArgumentFormatter.
Ellipsis
}, 2, 3, 4, 5, 6]" + Environment.NewLine +
4347
$"Expected: [{ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
4348
$"Actual: [{ArgumentFormatter.
Ellipsis
}]",
MemoryAssertsTests.cs (18)
108
"String: \"This is a relatively long string so that \"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
109
"Not found: \"We are looking for something very long as\"" + ArgumentFormatter.
Ellipsis
,
149
"Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.
Ellipsis
+ "]" + Environment.NewLine +
163
"Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.
Ellipsis
+ "]" + Environment.NewLine +
301
"String: \"Hello, world from a very long string that\"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
316
"String: " + ArgumentFormatter.
Ellipsis
+ "\"ng that has 'Hello, world' placed in the \"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
331
"String: " + ArgumentFormatter.
Ellipsis
+ "\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
373
"Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.
Ellipsis
+ "]" + Environment.NewLine +
388
"Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.
Ellipsis
+ "]" + Environment.NewLine +
516
"String: " + ArgumentFormatter.
Ellipsis
+ "\"at we expected to find this ending inside\"" + Environment.NewLine +
517
"Expected end: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
665
"Expected: " + ArgumentFormatter.
Ellipsis
+ "\"hy hello there world, you're a long strin\"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
666
"Actual: " + ArgumentFormatter.
Ellipsis
+ "\"hy hello there world! You're a long strin\"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
933
"String: \"This is the long string that we expected \"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
934
"Expected start: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
Sdk\ArgumentFormatterTests.cs (5)
83
Assert.Equal(expected.Replace("$$ELLIPSIS$$", ArgumentFormatter.
Ellipsis
), ArgumentFormatter.Format(value));
353
Assert.Equal($"[0, 1, 2, 3, 4, {ArgumentFormatter.
Ellipsis
}]", ArgumentFormatter.Format(collection));
367
Assert.Equal($"[42, [42, [{ArgumentFormatter.
Ellipsis
}]]]", ArgumentFormatter.Format(looping));
454
var expected = $@"Big {{ MyField1 = 42, MyField2 = ""Hello, world!"", MyProp1 = {21.12}, MyProp2 = typeof(ArgumentFormatterTests+ComplexTypes+Big), MyProp3 = 2014-04-17T07:45:23.0000000+00:00, {ArgumentFormatter.
Ellipsis
} }}";
489
Assert.Equal($"Looping {{ Me = Looping {{ Me = Looping {{ {ArgumentFormatter.
Ellipsis
} }} }} }}", ArgumentFormatter.Format(new Looping()));
Sdk\CollectionTrackerTests.cs (16)
20
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}]", result);
44
Assert.Equal($"[1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]", result);
56
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}, 2, 3, 4, 5, 6, {ArgumentFormatter.
Ellipsis
}]", result);
68
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}, 3, 4, 5, 6, 7]", result);
84
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}]", result);
108
Assert.Equal($"[1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]", result);
120
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}, 2, 3, 4, 5, 6, {ArgumentFormatter.
Ellipsis
}]", result);
132
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}, 3, 4, 5, 6, 7]", result);
154
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}]", tracker.FormatStart(ArgumentFormatter.MAX_DEPTH));
178
Assert.Equal($"[1, {2.3M}, \"Hello, world!\", 42, 2112, {ArgumentFormatter.
Ellipsis
}]", tracker.FormatStart());
197
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}]", CollectionTracker<object>.FormatStart(collection, ArgumentFormatter.MAX_DEPTH));
221
Assert.Equal($"[1, {2.3M}, \"Hello, world!\", 42, 2112, {ArgumentFormatter.
Ellipsis
}]", CollectionTracker<object>.FormatStart(collection));
241
Assert.Equal($"[{ArgumentFormatter.
Ellipsis
}]", CollectionTracker<object>.FormatStart(span, ArgumentFormatter.MAX_DEPTH));
265
Assert.Equal($"[1, {2.3M}, \"Hello, world!\", 42, 2112, {ArgumentFormatter.
Ellipsis
}]", CollectionTracker<object>.FormatStart(span));
SpanAssertsTests.cs (18)
108
$"String: \"This is a relatively long string so that \"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
109
$"Not found: \"We are looking for something very long as\"{ArgumentFormatter.
Ellipsis
}",
149
$"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
163
$"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
301
$"String: \"Hello, world from a very long string that\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
316
$"String: {ArgumentFormatter.
Ellipsis
}\"ng that has 'Hello, world' placed in the \"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
331
$"String: {ArgumentFormatter.
Ellipsis
}\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
373
$"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
388
$"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.
Ellipsis
}]" + Environment.NewLine +
516
"String: " + ArgumentFormatter.
Ellipsis
+ "\"at we expected to find this ending inside\"" + Environment.NewLine +
517
"Expected end: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
665
$"Expected: {ArgumentFormatter.
Ellipsis
}\"hy hello there world, you're a long strin\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
666
$"Actual: {ArgumentFormatter.
Ellipsis
}\"hy hello there world! You're a long strin\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
933
"String: \"This is the long string that we expected \"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
934
"Expected start: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
StringAssertsTests.cs (14)
111
$"String: \"This is a relatively long string so that \"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
112
$"Not found: \"We are looking for something very long as\"{ArgumentFormatter.
Ellipsis
}",
228
$"String: \"Hello, world from a very long string that\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
258
$"String: {ArgumentFormatter.
Ellipsis
}\"ng that has 'Hello, world' placed in the \"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
288
$"String: {ArgumentFormatter.
Ellipsis
}\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
545
"String: " + ArgumentFormatter.
Ellipsis
+ "\"at we expected to find this ending inside\"" + Environment.NewLine +
546
"Expected end: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
715
$"Expected: {ArgumentFormatter.
Ellipsis
}\"hy hello there world, you're a long strin\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
716
$"Actual: {ArgumentFormatter.
Ellipsis
}\"hy hello there world! You're a long strin\"{ArgumentFormatter.
Ellipsis
}" + Environment.NewLine +
947
"String: \"This is the long string that we expected \"" + ArgumentFormatter.
Ellipsis
+ Environment.NewLine +
948
"Expected start: \"This is a long string that we're looking \"" + ArgumentFormatter.
Ellipsis
,
xunit.assert (9)
Sdk\ArgumentFormatter.cs (4)
331
return string.Format(CultureInfo.CurrentCulture, "{0}{{ {1} }}", typeName,
Ellipsis
);
358
formattedParameters += ", " +
Ellipsis
;
413
result.Append(
Ellipsis
);
443
return string.Format(CultureInfo.CurrentCulture, "\"{0}\"{1}", displayed,
Ellipsis
);
Sdk\AssertHelper.cs (2)
223
printedValue.Append(ArgumentFormatter.
Ellipsis
);
256
printedValue.Append(ArgumentFormatter.
Ellipsis
);
Sdk\CollectionTracker.cs (3)
627
printedValues.Append(ArgumentFormatter.
Ellipsis
+ ", ");
641
printedValues.Append(", " + ArgumentFormatter.
Ellipsis
);
745
printedValues.Append(", " + ArgumentFormatter.
Ellipsis
);