public void CanReadRecords() { var fileCollection = new SimpleFileCollection <RecordStub>(); var records = fileCollection.ToList(); records.ShouldNotBeNull(); }
public void CanAddRecord() { var fileCollection = new SimpleFileCollection <RecordStub>(); var testRecord = new RecordStub { TestValue = "This is a test" }; fileCollection.Add(testRecord); var records = fileCollection.ToList(); records.ShouldContain(Is(testRecord)); }