public void Contains_NonExistantStringAndIndex_ReturnsFalse() { SafeExecuteTest( RandomDataSheetSpath, (spreadsheet) => { var target = new SharedStringTableIndexer(spreadsheet.WorkbookPart.SharedStringTablePart); Assert.IsFalse(target.Contains(Guid.NewGuid().ToString())); Assert.IsFalse(target.Contains(target.UniqueCount + 1)); }); }
public void Contains_ExistingStringAndIndex_ReturnsFalse() { SafeExecuteTest( RandomDataSheetSpath, (spreadsheet) => { var target = new SharedStringTableIndexer(spreadsheet.WorkbookPart.SharedStringTablePart); var item = Guid.NewGuid().ToString(); var index = target.Add(item); Assert.IsTrue(target.Contains(item)); Assert.IsTrue(target.Contains(index)); }); }