Sha256: 6c9ade06118789640cff4a76177f886ad9e26517531251aa2aa10feccf5c6baa

Contents?: true

Size: 1.25 KB

Versions: 56

Compression:

Stored size: 1.25 KB

Contents

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

class TC_FXMenuCheck < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    @menuCheck = FXMenuCheck.new(mainWindow, "menuCheck")
  end

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

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

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

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

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

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
fxruby-1.6.43-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.43-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.42 test/TC_FXMenuCheck.rb
fxruby-1.6.42-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.42-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.41 test/TC_FXMenuCheck.rb
fxruby-1.6.41-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.41-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.40-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.40-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.40 test/TC_FXMenuCheck.rb
fxruby-1.6.39 test/TC_FXMenuCheck.rb
fxruby-1.6.39-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.39-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.38 test/TC_FXMenuCheck.rb
fxruby-1.6.38-x64-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.38-x86-mingw32 test/TC_FXMenuCheck.rb
fxruby-1.6.38.pre1 test/TC_FXMenuCheck.rb
fxruby-1.6.37 test/TC_FXMenuCheck.rb
fxruby-1.6.37-x64-mingw32 test/TC_FXMenuCheck.rb