Sha256: 889adf7113a8884bfb83f096e7a22ca2619f6825a12a52c77b798b17517c1410

Contents?: true

Size: 702 Bytes

Versions: 100

Compression:

Stored size: 702 Bytes

Contents

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

class TC_FXSettings < Fox::TestCase
  include Fox


  def setup
    super(self.class.name)
  end

  def test_each_section_empty_settings
    empty = FXSettings.new
    num_sections = 0
    empty.each_section do |sect|
      num_sections = num_sections + 1
    end
    assert_equal(0, num_sections)
  end

  def test_each_section
    settings = FXSettings.new
    settings.writeStringEntry('sect1', 'key1', 'value1')
    settings.writeStringEntry('sect2', 'key2', 'value2')
    keys = []
    settings.each_section do |sect|
      sect.each_key do |key|
        keys << key
      end
    end
    assert_equal(['key1', 'key2'], keys.sort)
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

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