Sha256: fe4358f5051aa29c3ced3408aa18af56e14b943179f09b43a959deca3f55ec33

Contents?: true

Size: 734 Bytes

Versions: 92

Compression:

Stored size: 734 Bytes

Contents

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

class TC_FXMessageBox < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
  end

  def test_nil_app_raises_argument_error
    assert_raise(ArgumentError){ FXMessageBox.new(nil, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE) }
  end

  def test_construct_with_save_cancel_dontsave
    assert_nothing_raised(RangeError) do
      FXMessageBox.new(mainWindow, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE)
    end
  end

  def test_mbox_clicked_dontsave_defined
    assert(Fox.const_defined?(:MBOX_CLICKED_DONTSAVE))
  end

  def test_mbox_clicked_dontsave_equal_to_mbox_clicked_no
    assert_equal(MBOX_CLICKED_NO, MBOX_CLICKED_DONTSAVE)
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
fxruby-1.6.48 test/TC_FXMessageBox.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXMessageBox.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.47 test/TC_FXMessageBox.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXMessageBox.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.46 test/TC_FXMessageBox.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXMessageBox.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.45 test/TC_FXMessageBox.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXMessageBox.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.44 test/TC_FXMessageBox.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXMessageBox.rb
fxruby-1.6.43 test/TC_FXMessageBox.rb