Sha256: 8eb84c676d18f3f819d7edff4d8e8ba711d250fc380e58452e09e82529334381

Contents?: true

Size: 980 Bytes

Versions: 2

Compression:

Stored size: 980 Bytes

Contents

#####################################################################
# tc_sound.rb
#
# Test case for the Windows::Sound module.
#####################################################################
require 'windows/sound'
require 'minitest/autorun'

class SoundFoo
   include Windows::Sound
end

class TC_Windows_Sound < MiniTest::Test
   def setup
      @foo = SoundFoo.new
   end

   def test_numeric_constants
      assert_equal(0, SoundFoo::SND_SYNC)
      assert_equal(1, SoundFoo::SND_ASYNC)
      assert_equal(2, SoundFoo::SND_NODEFAULT)
      assert_equal(4, SoundFoo::SND_MEMORY)
      assert_equal(8, SoundFoo::SND_LOOP)
      assert_equal(16, SoundFoo::SND_NOSTOP)
   end

   def test_method_constants
      assert_not_nil(SoundFoo::Beep)
      assert_not_nil(SoundFoo::PlaySound)
      assert_not_nil(SoundFoo::WaveOutSetVolume)
      assert_not_nil(SoundFoo::WaveOutGetVolume)
   end

   def teardown
      @foo = nil
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
windows-pr-1.2.6 test/tc_sound.rb
windows-pr-1.2.5 test/tc_sound.rb