Codebase list ruby-fxruby / a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/main test / TC_FXDCWindow.rb
a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/main

Tree @a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/main (Download .tar.gz)

TC_FXDCWindow.rb @a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/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