Esempio n. 1
0
        public void TryGetPropertyMap_TypeValid_ReturnsPropertyMap()
        {
            var type        = typeof(TestType);
            var propertyMap = TypeRepository.GetPropertyMap(type);
            var sheet       = MockedSheetFactory.GetMockedSheet(TestType.TableData);
            var sheetTable  = new SheetTable(sheet);

            var res = TypeRepository.TryGetPropertyMap(sheetTable, type, out var map);

            Assert.That(res);
            Assert.That(propertyMap.Keys.All(k => !String.IsNullOrWhiteSpace(k[0])));
        }
Esempio n. 2
0
 private SheetTable GetMockedSheetTable(string[,] tableData)
 {
     return(new SheetTable(MockedSheetFactory.GetMockedSheet(tableData)));
 }