assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"B7",Author:"Excelize",Text:s[:TotalCellChars-1],Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}))
assert.EqualError(t,f.AddComment("SheetN",Comment{Cell:"B7",Author:"Excelize",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}),"sheet SheetN does not exist")
assert.EqualError(t,f.AddComment("Sheet1",Comment{Cell:"A",Author:"Excelize",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment."}}}),newCellNameToCoordinatesError("A",newInvalidCellNameError("A")).Error())
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"A40",Text:"Excelize: This is a comment1."}))
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"A41",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment2."}}}))
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"C41",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment3."}}}))
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"C41",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment3-1."}}}))
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"C42",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment4."}}}))
assert.NoError(t,f.AddComment("Sheet2",Comment{Cell:"C41",Runs:[]RichTextRun{{Text:"Excelize: ",Font:&Font{Bold:true}},{Text:"This is a comment2."}}}))