Sha256: 6e0af9a30abb5469977974f57ca72c476b3c370caab5d1ccc7663f32eef7e8bb
Contents?: true
Size: 775 Bytes
Versions: 2
Compression:
Stored size: 775 Bytes
Contents
##################################################################### # tc_network_winsock.rb # # Test case for the Windows::Winsock module. ##################################################################### require 'windows/network/winsock' require 'test/unit' class WinsockFoo include Windows::Network::Winsock end class TC_Windows_Network_Winsock < Test::Unit::TestCase def setup @foo = WinsockFoo.new end def test_numeric_constants assert_equal(0, WinsockFoo::NS_DEFAULT) end def test_method_constants assert_not_nil(WinsockFoo::GetTypeByName) end def test_method_mixins assert_respond_to(@foo, :gethostbyname) assert_respond_to(@foo, :GetTypeByName) end def teardown @foo = nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.3 | test/tc_network_winsock.rb |
windows-pr-1.1.3 | test/tc_network_winsock.rb |