Procházet zdrojové kódy

Removed Hardcoded Test

master
Michal Maciejewski před 9 roky
rodič
revize
63d403c79b
2 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. 5
    1
      DocX/Table.cs
  2. 2
    2
      UnitTests/DocXUnitTests.cs

+ 5
- 1
DocX/Table.cs Zobrazit soubor

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 Zobrazit soubor

} }
[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();
} }
} }

Načítá se…
Zrušit
Uložit