public void AddRow_adds_single_fake_data_row()
 {
     var fakeDataRecords = new FakeDataRecords(_metaData);
     fakeDataRecords.AddRow(new object[] { 1, "First" });
     var records = fakeDataRecords.ToList();
     var fakeData = new List<object[]>
         {
             new object[] { 1, "First" }
         };
     Assert.That(records, Is.EqualTo(fakeData));
 }
 public void When_type_of_field_in_meta_data_and_type_of_field_in_adding_row_not_matched_it_throws_DataValidationException()
 {
     var fakeDataRecords = new FakeDataRecords(_metaData);
     Assert.Throws<DataValidationException>(() => fakeDataRecords.AddRow(new object[] { 1, new DateTime(2015, 11, 25, 7, 37, 0) }));
 }
 public void When_number_of_fields_in_meta_data_and_number_of_fields_in_adding_row_not_matched_it_throws_DataValidationException()
 {
     var fakeDataRecords = new FakeDataRecords(_metaData);
     Assert.Throws<DataValidationException>(() => fakeDataRecords.AddRow(new object[] { 1 }));
 }