public void AddCellValueMapper_ValidItem_Success()
        {
            var reader = new ColumnNameValueReader("Column");
            var map    = new SubOneToOneMap <int>(reader);
            var item1  = new BoolMapper();
            var item2  = new BoolMapper();

            map.AddCellValueMapper(item1);
            map.AddCellValueMapper(item2);
            Assert.Equal(new ICellValueMapper[] { item1, item2 }, map.CellValueMappers);
        }
        public void AddCellValueMapper_NullItem_ThrowsArgumentNullException()
        {
            var reader = new ColumnNameValueReader("Column");
            var map    = new SubOneToOneMap <int>(reader);

            Assert.Throws <ArgumentNullException>("mapper", () => map.AddCellValueMapper(null));
        }
        public void RemoveCellValueMapper_Index_Success()
        {
            var reader = new ColumnNameValueReader("Column");
            var map    = new SubOneToOneMap <int>(reader);

            map.AddCellValueMapper(new BoolMapper());

            map.RemoveCellValueMapper(0);
            Assert.Empty(map.CellValueMappers);
        }