Class EmptyException
Exception thrown when Assert.Empty fails.
public class EmptyException : XunitException, ISerializable, IAssertionException
- Inheritance
-
EmptyException
- Implements
- Inherited Members
Methods
ForNonEmptyCollection(string)
Creates a new instance of the EmptyException to be thrown when the collection is not empty.
public static EmptyException ForNonEmptyCollection(string collection)
Parameters
collectionstringThe non-empty collection
Returns
ForNonEmptyString(string)
Creates a new instance of the EmptyException to be thrown when the string is not empty.
public static EmptyException ForNonEmptyString(string value)
Parameters
valuestringThe non-empty string value