14 references to assertFailure
Microsoft.DotNet.XUnitAssert.Tests (14)
Asserts\SpanAssertsTests.cs (14)
866 assertFailure(() => Assert.StartsWith("hey".AsSpan(), "Hello, world!".AsSpan()));
867 assertFailure(() => Assert.StartsWith("hey".AsSpan(), "Hello, world!".Spanify()));
868 assertFailure(() => Assert.StartsWith("hey".Spanify(), "Hello, world!".AsSpan()));
869 assertFailure(() => Assert.StartsWith("hey".Spanify(), "Hello, world!".Spanify()));
888 assertFailure(() => Assert.StartsWith("WORLD!".AsSpan(), "world!".AsSpan()));
889 assertFailure(() => Assert.StartsWith("WORLD!".AsSpan(), "world!".Spanify()));
890 assertFailure(() => Assert.StartsWith("WORLD!".Spanify(), "world!".AsSpan()));
891 assertFailure(() => Assert.StartsWith("WORLD!".Spanify(), "world!".Spanify()));
919 assertFailure(() => Assert.StartsWith("foo".AsSpan(), null));
920 assertFailure(() => Assert.StartsWith("foo".Spanify(), null));
942 assertFailure(() => Assert.StartsWith(expected.AsSpan(), actual.AsSpan()));
943 assertFailure(() => Assert.StartsWith(expected.AsSpan(), actual.Spanify()));
944 assertFailure(() => Assert.StartsWith(expected.Spanify(), actual.AsSpan()));
945 assertFailure(() => Assert.StartsWith(expected.Spanify(), actual.Spanify()));