Codebase list ruby-fxruby / f2142f7b-79b7-4d17-b6ba-e115f4ec56e1/main test / TC_FXMainWindow.rb
f2142f7b-79b7-4d17-b6ba-e115f4ec56e1/main

Tree @f2142f7b-79b7-4d17-b6ba-e115f4ec56e1/main (Download .tar.gz)

TC_FXMainWindow.rb @f2142f7b-79b7-4d17-b6ba-e115f4ec56e1/mainraw · 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
    app = FXApp.new
    assert_raise RuntimeError do
      FXMainWindow.new(app, "title").create
    end
  end
end