private UnlockMostRecentLine ( ) : |
||
Результат |
public void UnlockMostRecentLineShouldNotThrowIfBookIsEmpty() { var subject = new LedgerBook(new FakeLogger()) { Name = "Foo", Modified = new DateTime(2011, 12, 4), FileName = @"C:\TestLedgerBook.xml", }; LedgerEntryLine result = subject.UnlockMostRecentLine(); Assert.IsNull(result); }
public LedgerEntryLine UnlockCurrentMonth(LedgerBook ledgerBook) { if (ledgerBook == null) { throw new ArgumentNullException(nameof(ledgerBook)); } return ledgerBook.UnlockMostRecentLine(); }