public void Apply_NullFormat_ThrowsArugmentNullException() { ExceptionAssert.CatchArgumentNullException(() => { StringFormatter.Apply <object>(new object(), null, null, null); }, "format"); }
public void Save_NullStream_ThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { new XResourceFile().Save((Stream)null); }, "stream"); }
public void Ctor_Null_ThrowsFormatException() { ExceptionAssert.CatchArgumentNullException(() => { new FormattingArgumentsCollection(null); }, "formatProvider"); }
public void Load_NullFileThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { XResourceFile.Load((FileInfo)null); }, "file"); }
public void Apply_NullFormatProvider_ThrowsArugmentNullException() { ExceptionAssert.CatchArgumentNullException(() => { StringFormatter.Apply(Int32.MinValue, "0", null, null); }, "formatProvider"); }
public void Register_TypeNull_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { ThreadDomain.Register(null, null); }, "type"); }
public void Save_NullFile_ThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { new XResourceFile().Save((FileInfo)null); }, "file"); }
public void Register_ActionNull_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { ThreadDomain.Register(typeof(Int32), null); }, "creator"); }
public void Apply_NullTokens_ThrowsArugmentNullException() { ExceptionAssert.CatchArgumentNullException(() => { StringFormatter.Apply(Int32.MinValue, "0", CultureInfo.InvariantCulture, null); }, "tokens"); }
public void Remove_Null_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { ThreadDomain.Current.Remove(null); }, "type"); }
public void Load_NullStream_ThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { XResourceFile.Load((Stream)null); }, "stream"); }
public void Ctor_NullName_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { new XResourceFileData(null, null); }, "name"); }
public void Ctor_NullArray_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { new EmailAddressCollection((EmailAddress[])null); }, "emails"); }
public void Constructor_SerializationInfoIsNull_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException (() => { SerializationTest.DeserializeUsingConstructor <Percentage>(null, default(StreamingContext)); }, "info"); }
public void Format_NullFormat_ThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { var collection = new FormattingArgumentsCollection(); collection.Format(null, null); } , "format"); }
public void GetStreamSize_NullDirectoryInfo_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { DirectoryInfo directoryInfo = null; directoryInfo.GetStreamSize(); } , "directoryInfo"); }
public void GetStreamSize_NullFileInfo_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { FileInfo fileInfo = null; fileInfo.GetStreamSize(); } , "fileInfo"); }
public void GetStreamSize_NullStream_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { Stream stream = null; stream.GetStreamSize(); } , "stream"); }
public void Constructor_SerializationInfoIsNull_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException (() => { SerializationTest.DeserializeUsingConstructor <InternationalBankAccountNumber>(null, default(StreamingContext)); }, "info"); }
public void Format_NullArugment_ThrowArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { var collection = new FormattingArgumentsCollection(); collection.Format("Value: '{0}'", null); } , "args"); }
public void Add_NullType_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException(() => { var collection = new FormattingArgumentsCollection(); collection.Add(null, ""); }, "type"); }
public void GetObjectData_Null_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException (() => { ISerializable obj = new WildcardPattern("*"); obj.GetObjectData(null, default(StreamingContext)); }, "info"); }
public void GetObjectData_Null_ThrowsArgumentNullException() { ExceptionAssert.CatchArgumentNullException (() => { ISerializable obj = TestStruct; obj.GetObjectData(null, default(StreamingContext)); }, "info"); }