Codebase list ruby-fxruby / 9b83229d-99a2-488e-b6b7-b3432e4770f9/main test / TC_FXDCWindow.rb
9b83229d-99a2-488e-b6b7-b3432e4770f9/main

Tree @9b83229d-99a2-488e-b6b7-b3432e4770f9/main (Download .tar.gz)

TC_FXDCWindow.rb @9b83229d-99a2-488e-b6b7-b3432e4770f9/mainraw · history · blame

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

class TC_FXDCWindow < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    app.create
    mainWindow.create
  end

  def test_new
    dc = FXDCWindow.new(mainWindow)
    dc.drawPoint(0, 0)
    dc.end
  end

  def test_new_with_block
    FXDCWindow.new(mainWindow) do |dc|
      dc.drawPoint(0, 0)
    end
  end
end