Skip to content
Snippets Groups Projects
TC_FXDCWindow.rb 386 B
Newer Older
  • Learn to ignore specific revisions
  • require 'test/unit'
    require 'testcase'
    require 'fox16'
    
    include Fox
    
    class TC_FXDCWindow < TestCase
      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
        dc = FXDCWindow.new(mainWindow) do |dc|
          dc.drawPoint(0, 0)
        end
      end
    end