Selaa lähdekoodia

Removed Hardcoded Test

master
Michal Maciejewski 10 vuotta sitten
vanhempi
commit
63d403c79b
2 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 5
    1
      DocX/Table.cs
  2. 2
    2
      UnitTests/DocXUnitTests.cs

+ 5
- 1
DocX/Table.cs Näytä tiedosto

row.Cells[index].Xml.AddBeforeSelf(cell); row.Cells[index].Xml.AddBeforeSelf(cell);
} }
} }
/// <summary>
/// Deletes a cell in a row
/// </summary>
/// <param name="rowIndex">index of the row you want to remove the cell</param>
/// <param name="celIndex">index of the cell you want to remove</param>
public void DeleteAndShiftCellsLeft(int rowIndex, int celIndex) public void DeleteAndShiftCellsLeft(int rowIndex, int celIndex)
{ {

+ 2
- 2
UnitTests/DocXUnitTests.cs Näytä tiedosto

} }
[Test] [Test]
public void Test_Table_MergeRowMergedCellsWithColumnMergedCells()
public void Test_Table_MergedRowCellsMergedWithColumnMergedCells()
{ {
using (DocX document = DocX.Create(Path.Combine(_directoryDocuments, "Tables3.docx"))) using (DocX document = DocX.Create(Path.Combine(_directoryDocuments, "Tables3.docx")))
{ {
t1.InsertColumn(6, true); t1.InsertColumn(6, true);
t1.InsertColumn(6, true); t1.InsertColumn(6, true);
t1.InsertColumn(5, true); t1.InsertColumn(5, true);
document.SaveAs(@"C:\\Meh\\ThisTest.docx");
document.Save();
} }
} }

Loading…
Peruuta
Tallenna