Sha256: a178758956c32f2c8db7aefb1855bd7ae99961aaa156ba2dd763d3f02d777478

Contents?: true

Size: 1.31 KB

Versions: 56

Compression:

Stored size: 1.31 KB

Contents

require 'test/unit'
require 'testcase'
require 'fox16'

class TC_FXRadioButton < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    @radioButton = FXRadioButton.new(mainWindow, "cbText")
  end

  def test_setCheck_TRUE
    @radioButton.check = Fox::TRUE
    assert_equal(Fox::TRUE, @radioButton.checkState)
    assert(@radioButton.checked?)
    assert(!@radioButton.unchecked?)
    assert(!@radioButton.maybe?)
  end

  def test_setCheck_FALSE
    @radioButton.check = Fox::FALSE
    assert_equal(Fox::FALSE, @radioButton.checkState)
    assert(!@radioButton.checked?)
    assert(@radioButton.unchecked?)
    assert(!@radioButton.maybe?)
  end

  def test_setCheck_MAYBE
    @radioButton.check = Fox::MAYBE
    assert_equal(Fox::MAYBE, @radioButton.checkState)
    assert(!@radioButton.checked?)
    assert(!@radioButton.unchecked?)
    assert(@radioButton.maybe?)
  end

  def test_setCheck_true
    @radioButton.check = true
    assert_equal(Fox::TRUE, @radioButton.checkState)
    assert(@radioButton.checked?)
    assert(!@radioButton.unchecked?)
    assert(!@radioButton.maybe?)
  end

  def test_setCheck_false
    @radioButton.check = false
    assert_equal(Fox::FALSE, @radioButton.checkState)
    assert(!@radioButton.checked?)
    assert(@radioButton.unchecked?)
    assert(!@radioButton.maybe?)
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
fxruby-1.6.48 test/TC_FXRadioButton.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXRadioButton.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.47 test/TC_FXRadioButton.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXRadioButton.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.46 test/TC_FXRadioButton.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXRadioButton.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.45 test/TC_FXRadioButton.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXRadioButton.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.44 test/TC_FXRadioButton.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXRadioButton.rb
fxruby-1.6.43 test/TC_FXRadioButton.rb