44 references to Spanify
Microsoft.DotNet.XUnitAssert.Tests (44)
SpanAssertsTests.cs (44)
132 Assert.Contains(new int[] { 3, 4 }.Spanify(), new int[] { 1, 2, 3, 4, 5, 6, 7 }.Spanify()); 138 Assert.Contains(new string[] { "test", "it" }.Spanify(), new string[] { "something", "interesting", "test", "it", "out" }.Spanify()); 158 var ex = Record.Exception(() => Assert.Contains(new int[] { 13, 14 }.Spanify(), new int[] { 1, 2, 3, 4, 5, 6, 7 }.Spanify())); 172 var ex = Record.Exception(() => Assert.Contains(new int[] { 3, 4 }.Spanify(), Span<int>.Empty)); 186 Assert.Contains(Span<int>.Empty, new int[] { 3, 4 }.Spanify()); 355 Assert.DoesNotContain(new int[] { 13, 14 }.Spanify(), new int[] { 1, 2, 3, 4, 5, 6, 7 }.Spanify()); 361 Assert.DoesNotContain(new string[] { "it", "test" }.Spanify(), new string[] { "something", "interesting", "test", "it", "out" }.Spanify()); 382 var ex = Record.Exception(() => Assert.DoesNotContain(new int[] { 3, 4 }.Spanify(), new int[] { 1, 2, 3, 4, 5, 6, 7 }.Spanify())); 397 Assert.DoesNotContain(new int[] { 3, 4 }.Spanify(), Span<int>.Empty); 405 var ex = Record.Exception(() => Assert.DoesNotContain(Span<int>.Empty, data.ToArray().Spanify())); 719 Assert.Equal(value1.AsSpan(), value2.Spanify()); 720 Assert.Equal(value2.AsSpan(), value1.Spanify()); 723 Assert.Equal(value1.Spanify(), value2.AsSpan()); 724 Assert.Equal(value2.Spanify(), value1.AsSpan()); 727 Assert.Equal(value1.Spanify(), value2.Spanify()); 728 Assert.Equal(value2.Spanify(), value1.Spanify()); 750 assertFailure(() => Assert.Equal(new int[] { 1, 0, 2, 3 }.AsSpan(), new int[] { 1, 2, 3 }.Spanify())); 751 assertFailure(() => Assert.Equal(new int[] { 1, 0, 2, 3 }.Spanify(), new int[] { 1, 2, 3 }.AsSpan())); 752 assertFailure(() => Assert.Equal(new int[] { 1, 0, 2, 3 }.Spanify(), new int[] { 1, 2, 3 }.Spanify())); 773 assertFailure(() => Assert.Equal(new int[] { 1, 2, 3 }.AsSpan(), new int[] { 1, 2, 3, 4 }.Spanify())); 774 assertFailure(() => Assert.Equal(new int[] { 1, 2, 3 }.Spanify(), new int[] { 1, 2, 3, 4 }.AsSpan())); 775 assertFailure(() => Assert.Equal(new int[] { 1, 2, 3 }.Spanify(), new int[] { 1, 2, 3, 4 }.Spanify())); 799 Assert.Equal(value1.AsSpan(), value2.Spanify()); 800 Assert.Equal(value2.AsSpan(), value1.Spanify()); 803 Assert.Equal(value1.Spanify(), value2.AsSpan()); 804 Assert.Equal(value2.Spanify(), value1.AsSpan()); 807 Assert.Equal(value1.Spanify(), value2.Spanify()); 808 Assert.Equal(value2.Spanify(), value1.Spanify()); 829 assertFailure(() => Assert.Equal(new string[] { "yes", "no", "maybe" }.AsSpan(), new string[] { "yes", "no", "maybe", "so" }.Spanify())); 830 assertFailure(() => Assert.Equal(new string[] { "yes", "no", "maybe" }.Spanify(), new string[] { "yes", "no", "maybe", "so" }.AsSpan())); 831 assertFailure(() => Assert.Equal(new string[] { "yes", "no", "maybe" }.Spanify(), new string[] { "yes", "no", "maybe", "so" }.Spanify()));