public void BaseModel_InvalidRecordTypeRaises() { var _exception = Record.Exception(() => { var _sut = new MyTestBaseModel(-999); } ); Assert.NotNull(_exception); Assert.Equal(ExceptionConstants.DotNet_ArgumentOutOfRangeException + ExceptionConstants.BaseModel_RecordTypeInvalid, _exception.Message); }
public void BaseModel_ValidRecordTypeSucceeds() { var _sut = new MyTestBaseModel((short)RecordTypeEnum.FileHeader); }