Codebase list ruby-fxruby / aa4c1343-5bb9-452f-ab3a-6b23547dc6ea/upstream/1.6.45+git20221125.1.7d76b2a test / TC_FXMainWindow.rb
aa4c1343-5bb9-452f-ab3a-6b23547dc6ea/upstream/1.6.45+git20221125.1.7d76b2a

Tree @aa4c1343-5bb9-452f-ab3a-6b23547dc6ea/upstream/1.6.45+git20221125.1.7d76b2a (Download .tar.gz)

TC_FXMainWindow.rb @aa4c1343-5bb9-452f-ab3a-6b23547dc6ea/upstream/1.6.45+git20221125.1.7d76b2araw · history · blame

require 'test/unit'
require 'fox16'

class TC_FXMainWindow < Test::Unit::TestCase
  include Fox

  def test_nil_app_raises_argument_error
    assert_raise ArgumentError do
      FXMainWindow.new(nil, "title")
    end
  end

  def test_non_created_app_raises_runtime_error
    pend "two FXApp are not allowed"
    app = FXApp.new
    assert_raise RuntimeError do
      FXMainWindow.new(app, "title").create
    end
  end
end