Sha256: cb02ac198317debd51bd8d11c197bf7613df5d996305fb2a353dad5e186e5291

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

require 'test/unit'
require 'testcase'
require 'fox12'

include Fox

class TC_FXMenuCommand < TestCase
  def setup
    super(self.class.name)
    @menuCommand = FXMenuCommand.new(mainWindow, "menuCommand")
  end
  
  def test_checked?
    @menuCommand.check
    assert(@menuCommand.checked?)
    @menuCommand.uncheck
    assert(!@menuCommand.checked?)
  end
  
  def test_radioChecked?
    @menuCommand.checkRadio
    assert(@menuCommand.radioChecked?)
    @menuCommand.uncheckRadio
    assert(!@menuCommand.radioChecked?)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fxruby-1.2.2 tests/TC_FXMenuCommand.rb
fxruby-1.2.3 tests/TC_FXMenuCommand.rb
fxruby-1.2.4 tests/TC_FXMenuCommand.rb
fxruby-1.2.5 tests/TC_FXMenuCommand.rb
fxruby-1.2.6 tests/TC_FXMenuCommand.rb
fxruby-1.4.0 tests/TC_FXMenuCommand.rb