예제 #1
0
        public void CanReadRecords()
        {
            var fileCollection = new SimpleFileCollection <RecordStub>();
            var records        = fileCollection.ToList();

            records.ShouldNotBeNull();
        }
예제 #2
0
        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));
        }