public void IsNotEmptyShouldNotRaiseExceptionIfNotEmpty() { Guid foo = Guid.NewGuid(); var result = AssertArg.IsNotEmpty(foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsLessThanOrEqualIntShouldNotRaiseExceptionIfEqual() { var foo = 5; var result = AssertArg.IsLessThanOrEqual(5, foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsLessThanOrEqualDoubleShouldNotRaiseExceptionIfLessThanOrEqual() { var foo = 5.0; var result = AssertArg.IsLessThanOrEqual(6.0, foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsNotNullAndOfTypeShouldNotRaiseExceptionIfNotNull() { object foo = new object(); var result = AssertArg.IsNotNullAndOfType <object>(foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsGreaterThanOrEqualIntShouldNotRaiseExceptionIfGreaterThan() { var foo = 5; var result = AssertArg.IsGreaterThanOrEqual(1, foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsNotNullOrEmptyShouldNotRaiseExceptionIfNotNullOrEmpty() { string foo = "foo"; var result = AssertArg.IsNotNullOrEmpty(foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsNotNullOrWhiteSpaceShouldRaiseExceptionIfWhiteSpace() { string foo = " "; AssertArg.IsNotNullOrWhiteSpace(foo, nameof(foo)); string foo2 = ""; AssertArg.IsNotNullOrWhiteSpace(foo, nameof(foo2)); }
public void IsNotNullOrEmptyShouldRaiseExceptionIfEmpty() { string foo = string.Empty; AssertArg.IsNotNullOrEmpty(foo, nameof(foo)); }
public void IsNotNullShouldRaiseExceptionIfNull() { object foo = null; AssertArg.IsNotNull(foo, nameof(IsNotNullShouldRaiseExceptionIfNull)); }
public void IsNotNullAndOfTypeShouldRaiseExceptionIfNotOfType() { object foo = new object(); AssertArg.IsNotNullAndOfType <string>(foo, nameof(foo)); }
public void IsGreaterIntThanShouldRaiseExceptionIfLessThan() { AssertArg.IsGreaterThan(1, 0, "None"); }
public void IsGreaterIntThanShouldRaiseExceptionIfEqual() { AssertArg.IsGreaterThan(1, 1, "None"); }
public void IsNotNullAndOfTypeShouldRaiseExceptionIfNull() { object foo = null; AssertArg.IsNotNullAndOfType <object>(foo, nameof(foo)); }
public void IsGreaterDoubleThanShouldRaiseExceptionIfEqual() { AssertArg.IsGreaterThan(1.0, 1.0, "None"); }
public void IsLessThanOrEqualDoubleShouldRaiseExceptionIfNotLessThan() { AssertArg.IsLessThan(0.0, 1.0, "None"); }
public void IsGreaterThanOrEqualIntShouldRaiseExceptionIfLessThan() { AssertArg.IsGreaterThanOrEqual(1, 0, "None"); }
public void IsNotNullOrWhiteSpaceShouldRaiseExceptionIfNull() { string foo = null; AssertArg.IsNotNullOrWhiteSpace(foo, nameof(foo)); }
public void IsLessThanDoubleShouldRaiseExceptionIfEqual() { AssertArg.IsLessThan(1.0, 1.0, "None"); }
public void IsLessThanIntShouldRaiseExceptionIfEqual() { AssertArg.IsLessThan(1, 1, "None"); }
public void IsGreaterThanOrEqualDoubleShouldRaiseExceptionIfLessThan() { AssertArg.IsGreaterThanOrEqual(1.0, 0.0, "None"); }
public void IsLessThanOrEqualIntShouldRaiseExceptionIfNotLessThan() { AssertArg.IsLessThan(0, 1, "None"); }
public void IsNotEmptyShouldRaiseExceptionIfEmpty() { Guid foo = Guid.Empty; AssertArg.IsNotEmpty(foo, nameof(foo)); }