EquivalenceAssertsTests.cs (127)
19 Assert.Equivalent(null, null);
29 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
55 Assert.Equivalent(expected, actual);
61 var ex = Record.Exception(() => Assert.Equivalent(12, 13));
75 Assert.Equivalent(12, 12L);
82 Assert.Equivalent(1m, 1m);
89 var ex = Record.Exception(() => Assert.Equivalent(1m, 2m));
104 var ex = Record.Exception(() => Assert.Equivalent(1m, new object()));
124 Assert.Equivalent(expected, actual);
133 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
153 Assert.Equivalent(expected, actual);
162 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
179 Assert.Equivalent("Hello", "Hello");
185 var ex = Record.Exception(() => Assert.Equivalent("Hello, world", "Hello, world!"));
199 var ex = Record.Exception(() => Assert.Equivalent(null, string.Empty));
216 Assert.Equivalent(new { x = 42 }, new { x = 42 });
222 var ex = Record.Exception(() => Assert.Equivalent(new { x = 42 }, new { x = 2112 }));
239 Assert.Equivalent(new { x = new { y = 42 } }, new { x = new { y = 42 } });
245 var ex = Record.Exception(() => Assert.Equivalent(new { x = new { y = 42 } }, new { x = new { y = 2112 } }));
262 Assert.Equivalent(new { x = 42, y = 2112 }, new { y = 2112, x = 42 });
271 Assert.Equivalent(expected, actual);
277 var ex = Record.Exception(() => Assert.Equivalent(new { x = 42, y = 2600 }, new { y = 2600, x = 2112 }));
294 Assert.Equivalent(new { x = new { y = 2112 }, z = 42 }, new { z = 42, x = new { y = 2112 } });
300 var ex = Record.Exception(() => Assert.Equivalent(new { x = new { y = 2600 }, z = 42 }, new { z = 42, x = new { y = 2112 } }));
320 Assert.Equivalent(expected, actual);
334 Assert.Equivalent(expected, actual);
349 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
369 Assert.Equivalent(expected, actual);
378 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
398 Assert.Equivalent(expected, actual);
407 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
427 Assert.Equivalent(expected, actual);
436 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
456 Assert.Equivalent(expected, actual);
465 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
483 Assert.Equivalent(
494 Assert.Equivalent(
506 () => Assert.Equivalent(
527 () => Assert.Equivalent(
551 () => Assert.Equivalent(
573 Assert.Equivalent(new[] { 1, 4 }, new[] { 9, 4, 1 }, strict: false);
582 Assert.Equivalent(expected, actual, strict: false);
588 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 6 }, new[] { 9, 4, 1 }, strict: false));
605 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
622 Assert.Equivalent(new[] { 1, 9, 4 }, new[] { 9, 4, 1 }, strict: true);
631 Assert.Equivalent(expected, actual, strict: true);
637 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 6 }, new[] { 9, 4, 1 }, strict: true));
651 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 9, 4 }, new[] { 6, 9, 4, 1 }, strict: true));
668 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
685 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
704 Assert.Equivalent(new[] { 1, 4 }.ToImmutableArray(), new[] { 9, 4, 1 }.ToImmutableArray(), strict: false);
713 Assert.Equivalent(expected, actual, strict: false);
719 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 6 }.ToImmutableArray(), new[] { 9, 4, 1 }.ToImmutableArray(), strict: false));
736 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
753 Assert.Equivalent(new[] { 1, 9, 4 }.ToImmutableArray(), new[] { 9, 4, 1 }.ToImmutableArray(), strict: true);
762 Assert.Equivalent(expected, actual, strict: true);
768 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 6 }.ToImmutableArray(), new[] { 9, 4, 1 }.ToImmutableArray(), strict: true));
782 var ex = Record.Exception(() => Assert.Equivalent(new[] { 1, 9, 4 }.ToImmutableArray(), new[] { 6, 9, 4, 1 }.ToImmutableArray(), strict: true));
799 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
816 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
838 Assert.Equivalent(expected, actual, strict: false);
847 Assert.Equivalent(expected, actual, strict: false);
856 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
873 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
893 Assert.Equivalent(expected, actual, strict: true);
902 Assert.Equivalent(expected, actual, strict: true);
911 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
928 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
945 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
962 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
982 Assert.Equivalent(expected, actual, strict: false);
991 Assert.Equivalent(expected, actual, strict: false);
1000 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1017 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1037 Assert.Equivalent(expected, actual, strict: true);
1046 Assert.Equivalent(expected, actual, strict: true);
1055 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1072 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1089 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1106 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1123 Assert.Equivalent(new[] { 1, 2, 3 }, new List<int> { 1, 2, 3 });
1129 Assert.Equivalent(new List<int> { 1, 2, 3 }, new[] { 1, 2, 3 });
1136 Assert.Equivalent(new[] { 1, 2, 3 }, new[] { 1, 2, 3 }.ToImmutableArray());
1142 Assert.Equivalent(new[] { 1, 2, 3 }.ToImmutableArray(), new[] { 1, 2, 3 });
1148 Assert.Equivalent(new[] { 1, 2, 3 }.ToImmutableList(), new[] { 1, 2, 3 }.ToImmutableSortedSet());
1161 Assert.Equivalent(expected, actual, strict: false);
1170 Assert.Equivalent(expected, actual, strict: false);
1179 Assert.Equivalent(expected, actual, strict: false);
1188 Assert.Equivalent(expected, actual, strict: false);
1197 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1214 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1231 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1248 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1268 Assert.Equivalent(expected, actual, strict: true);
1277 Assert.Equivalent(expected, actual, strict: true);
1286 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1303 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1320 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1337 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1357 Assert.Equivalent(expected, actual, strict: false);
1366 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1383 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: false));
1403 Assert.Equivalent(expected, actual, strict: true);
1412 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1429 var ex = Record.Exception(() => Assert.Equivalent(expected, actual, strict: true));
1451 Assert.Equivalent(expected, actual);
1460 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1477 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1495 Assert.Equivalent(expected, actual);
1506 Assert.Equivalent(expected, actual);
1515 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1537 Assert.Equivalent(expected, actual);
1552 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1565 Assert.Equivalent(expected, actual);
1574 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1587 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1605 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1638 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1650 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1665 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1688 Assert.Equivalent(expected, actual);
1697 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1717 Assert.Equivalent(expected, actual);
1726 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1746 Assert.Equivalent(expected, actual);
1755 var ex = Record.Exception(() => Assert.Equivalent(expected, actual));
1772 Assert.Equivalent(expected, actual);