public void TestBasic() { FormulaRecord f = new FormulaRecord(); f.SetCachedResultTypeString(); StringRecord s = new StringRecord(); s.String = ("abc"); FormulaRecordAggregate fagg = new FormulaRecordAggregate(f, s, SharedValueManager.CreateEmpty()); Assert.AreEqual("abc", fagg.StringValue); }
public void TestRowAggregation() { ArrayList records = new ArrayList(); records.Add(InternalSheet.CreateBOF()); records.Add(new DimensionsRecord()); records.Add(new RowRecord(0)); records.Add(new RowRecord(1)); FormulaRecord formulaRecord = new FormulaRecord(); formulaRecord.SetCachedResultTypeString(); records.Add(formulaRecord); records.Add(new StringRecord()); records.Add(new RowRecord(2)); records.Add(CreateWindow2Record()); records.Add(EOFRecord.instance); InternalSheet sheet = CreateSheet(records); Assert.IsNotNull(sheet.GetRow(2), "Row [2] was skipped"); }