Sha256: d15975ce205e3f545e7317cd230fcd9515b5e32c921f9b7eb815ab7d266b7939

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

#####################################################################
# tc_network_snmp.rb
#
# Test case for the Windows::NetworkSNMP module.
#####################################################################
require 'windows/network/snmp'
require 'minitest/autorun'

class NetworkSNMPFoo
   include Windows::Network::SNMP
end

class TC_Windows_Network_SNMP < MiniTest::Test
   def setup
      @foo = NetworkSNMPFoo.new
   end

   def test_numeric_constants
      assert_equal(0, NetworkSNMPFoo::SNMPAPI_FAILURE)
      assert_equal(1, NetworkSNMPFoo::SNMPAPI_SUCCESS)
   end

   def test_method_constants
      assert_not_nil(NetworkSNMPFoo::SnmpCleanup)
      assert_not_nil(NetworkSNMPFoo::SnmpClose)
   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_network_snmp.rb
windows-pr-1.2.5 test/tc_network_snmp.rb