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