浏览代码

Removed Hardcoded Test

master
Michal Maciejewski 9 年前
父节点
当前提交
63d403c79b
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 5
    1
      DocX/Table.cs
  2. 2
    2
      UnitTests/DocXUnitTests.cs

+ 5
- 1
DocX/Table.cs 查看文件

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 查看文件

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

正在加载...
取消
保存