Sha256: 957595bb1f841d9bc7ce84776e91e5d811e7109afa7c82fd44837207d5c3c18d
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
##################################################################### # tc_socket.rb # # Test case for the Windows::Socket module. ##################################################################### require 'windows/socket' require 'minitest/autorun' class SocketFoo include Windows::Socket end class TC_Windows_Socket < MiniTest::Test def setup @socket = SocketFoo.new end def test_methods assert_respond_to(@socket, :accept) assert_respond_to(@socket, :AcceptEx) end def test_constants assert_equal(0, SocketFoo::IPPROTO_IP) end def teardown @socket = nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.6 | test/tc_socket.rb |
windows-pr-1.2.5 | test/tc_socket.rb |