private void PopulateTestingFields()
 {
     _mockMetadataFile         = TestClassFactory.GetMockMetadataFileWithSomeNullDummyValues();
     _mockSystemFile           = TestClassFactory.GetMockSystemFileWithDummyValues();
     _tableForMockMetadataFile = TestClassFactory.GetDataTable(_mockMetadataFile);
     _tableForMockSystemFile   = TestClassFactory.GetDataTable(_mockSystemFile);
 }
        public void ToObject_Test_ReturnsMatchingObjectGivenInputWithNoNullablePropertyTypes()
        {
            var mockSystemFile = TestClassFactory.GetMockSystemFileWithDummyValues();
            var table          = TestClassFactory.GetDataTable(mockSystemFile);

            var returnedObject = table.Rows[0].ToObject <MockSystemFile>();

            Assert.IsTrue(mockSystemFile.Equals(returnedObject));
        }
        public void ToList_Test_ReturnsPopulatedObjectInListGivenInputWithNoNullablePropertyTypes()
        {
            var mockSystemFile = TestClassFactory.GetMockSystemFileWithDummyValues();

            _table = TestClassFactory.GetDataTable(mockSystemFile);

            var list = _table.ToList <MockSystemFile>();

            Assert.IsFalse(HelperMethodsForTesting.PropertiesAreSetToDefaultValues(list[0]));
        }