MemoryAssertsTests.cs (28)
715 Assert.Equal(value1.AsMemory(), value2.AsMemory());
716 Assert.Equal(value2.AsMemory(), value1.AsMemory());
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());
749 assertFailure(() => Assert.Equal(new int[] { 1, 0, 2, 3 }.AsMemory(), new int[] { 1, 2, 3 }.AsMemory()));
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()));
772 assertFailure(() => Assert.Equal(new int[] { 1, 2, 3 }.AsMemory(), new int[] { 1, 2, 3, 4 }.AsMemory()));
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()));
795 Assert.Equal(value1.AsMemory(), value2.AsMemory());
796 Assert.Equal(value2.AsMemory(), value1.AsMemory());
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());
828 assertFailure(() => Assert.Equal(new string[] { "yes", "no", "maybe" }.AsMemory(), new string[] { "yes", "no", "maybe", "so" }.AsMemory()));
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()));