Class StartsWithException
Exception thrown when Assert.StartsWith fails.
public class StartsWithException : XunitException, ISerializable, IAssertionException
- Inheritance
-
StartsWithException
- Implements
- Inherited Members
Methods
ForStringNotFound(string?, string?)
Creates an instance of the StartsWithException class to be thrown when a string does not start with the given value.
public static StartsWithException ForStringNotFound(string? expected, string? actual)