assert.EqualError(t,f.SetConditionalFormat("Sheet1","A1:A2",condFmts),"XML syntax error on line 1: element <conditionalFormattings> closed by </conditionalFormatting>")
// Test creating a conditional format with invalid icon set style
assert.EqualError(t,f.AddComment("SheetN",Comment{Cell:"B7",Author:"Excelize",Paragraph:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}),"sheet SheetN does not exist")
// Test add comment on with illegal cell reference
assert.EqualError(t,f.AddComment("Sheet1",Comment{Cell:"A",Author:"Excelize",Paragraph:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}),newCellNameToCoordinatesError("A",newInvalidCellNameError("A")).Error())
assert.Equal(t,newCellNameToCoordinatesError("A",newInvalidCellNameError("A")),f.AddComment("Sheet1",Comment{Cell:"A",Author:"Excelize",Paragraph:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}))