Przeglądaj źródła

Removed Hardcoded Test

master
Michal Maciejewski 9 lat temu
rodzic
commit
63d403c79b
2 zmienionych plików z 7 dodań i 3 usunięć
  1. 5
    1
      DocX/Table.cs
  2. 2
    2
      UnitTests/DocXUnitTests.cs

+ 5
- 1
DocX/Table.cs Wyświetl plik

@@ -1677,7 +1677,11 @@ namespace Novacode
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)
{

+ 2
- 2
UnitTests/DocXUnitTests.cs Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz