Codebase list ruby-fxruby / 0bd958a8-dc25-4dc6-88ad-0eea1021b47d/main test / TC_FXId.rb
0bd958a8-dc25-4dc6-88ad-0eea1021b47d/main

Tree @0bd958a8-dc25-4dc6-88ad-0eea1021b47d/main (Download .tar.gz)

TC_FXId.rb @0bd958a8-dc25-4dc6-88ad-0eea1021b47d/mainraw · history · blame

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

class TC_FXId < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
  end

  def test_created?
    assert !mainWindow.created?
    app.create
    assert mainWindow.created?, "main window should be created after call to FXApp#create"
    mainWindow.destroy
    assert !mainWindow.created?
  end
end