14 references to assertFailure
Microsoft.DotNet.XUnitAssert.Tests (14)
MemoryAssertsTests.cs (14)
863 assertFailure(() => Assert.StartsWith("hey".AsMemory(), "Hello, world!".AsMemory()));
864 assertFailure(() => Assert.StartsWith("hey".AsMemory(), "Hello, world!".Memoryify()));
865 assertFailure(() => Assert.StartsWith("hey".Memoryify(), "Hello, world!".AsMemory()));
866 assertFailure(() => Assert.StartsWith("hey".Memoryify(), "Hello, world!".Memoryify()));
885 assertFailure(() => Assert.StartsWith("WORLD!".AsMemory(), "world!".AsMemory()));
886 assertFailure(() => Assert.StartsWith("WORLD!".AsMemory(), "world!".Memoryify()));
887 assertFailure(() => Assert.StartsWith("WORLD!".Memoryify(), "world!".AsMemory()));
888 assertFailure(() => Assert.StartsWith("WORLD!".Memoryify(), "world!".Memoryify()));
916 assertFailure(() => Assert.StartsWith("foo".AsMemory(), null));
917 assertFailure(() => Assert.StartsWith("foo".Memoryify(), null));
939 assertFailure(() => Assert.StartsWith(expected.AsMemory(), actual.AsMemory()));
940 assertFailure(() => Assert.StartsWith(expected.AsMemory(), actual.Memoryify()));
941 assertFailure(() => Assert.StartsWith(expected.Memoryify(), actual.AsMemory()));
942 assertFailure(() => Assert.StartsWith(expected.Memoryify(), actual.Memoryify()));