public void TryGetSourceRecordFieldCount_RecordWithAttributeIsProvided_FieldCountIsReturned() { var record = new MockRecordWithAttribute(); var sourceRecordFieldCountprovider = new SourceRecordFieldCountProvider(); var couldGetSourceRecordFieldCount = sourceRecordFieldCountprovider.TryGetSourceRecordFieldCount( typeof(MockRecordWithAttribute), record, out var count); Assert.IsTrue(couldGetSourceRecordFieldCount); Assert.AreEqual(10, count); }
public void TryGetSourceRecordLength_RecordWithAttributeIsProvided_LengthIsReturned() { var record = new MockRecordWithAttribute(); var sourceRecordLengthprovider = new SourceRecordLengthProvider(); var couldGetSourceRecordLength = sourceRecordLengthprovider.TryGetSourceRecordLength( typeof(MockRecordWithAttribute), record, out var length); Assert.IsTrue(couldGetSourceRecordLength); Assert.AreEqual(10, length); }