예제 #1
0
 public void TestGetSetPatternType()
 {
     CT_Fill ctFill = new CT_Fill();
     XSSFCellFill cellFill = new XSSFCellFill(ctFill);
     CT_PatternFill ctPatternFill = ctFill.AddNewPatternFill();
     ctPatternFill.patternType = (ST_PatternType.solid);
     Assert.AreEqual(ST_PatternType.solid, cellFill.GetPatternType());
 }
예제 #2
0
 public void TestGetNotModifies()
 {
     CT_Fill ctFill = new CT_Fill();
     XSSFCellFill cellFill = new XSSFCellFill(ctFill);
     CT_PatternFill ctPatternFill = ctFill.AddNewPatternFill();
     ctPatternFill.patternType = (ST_PatternType.darkDown);
     Assert.AreEqual(ST_PatternType.darkDown, cellFill.GetPatternType());
 }
예제 #3
0
 public void TestGetFillForegroundColor()
 {
     CT_Fill ctFill = new CT_Fill();
     XSSFCellFill cellFill = new XSSFCellFill(ctFill);
     CT_PatternFill ctPatternFill = ctFill.AddNewPatternFill();
     CT_Color fgColor = ctPatternFill.AddNewFgColor();
     Assert.IsNotNull(cellFill.GetFillForegroundColor());
     fgColor.indexed = 8;
     fgColor.indexedSpecified = true;
     Assert.AreEqual(8, cellFill.GetFillForegroundColor().Indexed);
 }