public void Apply_StringEmptyFormat_ThrowsArugmentException() { ExceptionAssert.CatchArgumentException(() => { StringFormatter.Apply(new object(), string.Empty, null, null); }, "format", "Value cannot be an empty string."); }
public void Ctor_InvalidPatternSql_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException(() => { new WildcardPattern("%%", WildcardPatternOptions.SqlWildcards, StringComparison.CurrentCulture); }, "pattern", "The wildcard pattern is invalid."); }
public void Create_Length6ByteArray_throwsArgumentException() { ExceptionAssert.CatchArgumentException(() => { Timestamp.Create(new byte[] { 1, 2, 3, 4, 5, 6 }); }, "bytes", "The byte array should have size of 8."); }
public void Ctor_InvalidPattern_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException(() => { new WildcardPattern("**"); }, "pattern", "The wildcard pattern is invalid."); }
public void Add_NotIFormattebleType_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException(() => { var collection = new FormattingArgumentsCollection(); collection.Add(typeof(Type), ""); }, "type", "The argument must implement System.IFormattable."); }
public void Add_DuplicateKey_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException(() => { var collection = new FormattingArgumentsCollection(); collection.Add(typeof(Int32), "New"); collection.Add(typeof(Int32), "Update"); }, null, "An item with the same key has already been added."); }
public void CompareTo_newObject_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = new object(); TestStruct.CompareTo(other); }, "obj", "Argument must be Elo." ); }
public void CompareTo_null_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = null; TestStruct.CompareTo(other); }, "obj", "Argument must be EmailAddress." ); }
public void CompareTo_null_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = null; var act = TestStruct.CompareTo(other); }, "obj", "Argument must be a percentage" ); }
public void CompareTo_null_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = null; TestStruct.CompareTo(other); }, "obj", "Argument must be InternetMediaType." ); }
public void CompareTo_newObject_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = new object(); var act = TestStruct.CompareTo(other); }, "obj", "Argument must be a local date time" ); }
public void CompareTo_null_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = null; TestStruct.CompareTo(other); }, "obj", "Argument must be CryptographicSeed." ); }
public void CompareTo_newObject_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = new object(); TestStruct.CompareTo(other); }, "obj", "Argument must be InternationalBankAccountNumber." ); }
public void CompareTo_null_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = null; TestStruct.CompareTo(other); }, "obj", "Argument must be BusinessIdentifierCode." ); }
public void CompareTo_newObject_ThrowsArgumentException() { ExceptionAssert.CatchArgumentException (() => { object other = new object(); var act = TestStruct.CompareTo(other); }, "obj", "Argument must be a cryptographic seed" ); }