public void ShouldNotThrowExceptionWhenNotEmptyCheckNullCollection() { IEnumerable <string> enumerable = null; var action = new Action(() => Should.NotEmpty(enumerable, () => new CodeException())); action.Should().Throw <CodeException>(); }
public void ShouldNotThrowExceptionWhenNotEmptyCheckNotEmptyCollection() { Should.NotEmpty(new[] { 1 }, () => new CodeException()); }
public void ShouldNotThrowExceptionWhenNotEmptyCheckEmptyCollection() { var action = new Action(() => Should.NotEmpty(new string[0], () => new CodeException())); action.Should().Throw <CodeException>(); }
public void ShouldThrowExceptionWhenNotEmptyCheckNullString() { var action = new Action(() => Should.NotEmpty(null, () => new CodeException())); action.Should().Throw <CodeException>(); }
public void ShouldNotThrowExceptionWhenNotEmptyCheckNotEmptyString() { Should.NotEmpty("a", () => new CodeException()); Should.NotEmpty(" ", () => new CodeException()); Should.NotEmpty("\t", () => new CodeException()); }
public void ShouldNotThrowExceptionWhenNotEmptyCheckNullCollection() { IEnumerable <string> enumerable = null; Should.NotEmpty(enumerable, () => new CodeException()); }
public void ShouldNotThrowExceptionWhenNotEmptyCheckEmptyCollection() { Should.NotEmpty(new string[0], () => new CodeException()); }
public void ShouldThrowExceptionWhenNotEmptyCheckNullString() { Should.NotEmpty(null, () => new CodeException()); }