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]))); }
private SheetTable GetMockedSheetTable(string[,] tableData) { return(new SheetTable(MockedSheetFactory.GetMockedSheet(tableData))); }