Sha256: 909942d9b26ebbc926592ca76121c972bce881ef059d80d01cfc975356a12c97

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 test/TC_FXMainWindow.rb
fxruby-1.6.22.pre2 test/TC_FXMainWindow.rb
fxrubi-1.6.22.pre1-x86-mingw32 test/TC_FXMainWindow.rb
fxrubi-1.6.22.pre1 test/TC_FXMainWindow.rb