blob: 9aadef29deaea7cac93710a6b605c1bee6ec1696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'tc_helper.rb'
class TestFill < Test::Unit::TestCase
def setup
@item = Axlsx::Fill.new Axlsx::PatternFill.new
end
def teardown
end
def test_initialiation
assert(@item.fill_type.is_a?(Axlsx::PatternFill))
assert_raise(ArgumentError) { Axlsx::Fill.new }
assert_nothing_raised { Axlsx::Fill.new(Axlsx::GradientFill.new) }
end
end
|