public void TestToBytes()
		{
			EndOfMibView obj = new EndOfMibView();
			Assert.AreEqual(new byte[] { 0x82, 0x00 }, obj.ToBytes());
            Assert.AreEqual(0, obj.GetHashCode());

            EndOfMibView right = new EndOfMibView();
            Assert.AreEqual(obj, right);
            Assert.IsTrue(obj.Equals(right));
            Assert.IsTrue(obj != null);
// ReSharper disable EqualExpressionComparison
            Assert.IsTrue(obj == obj);
// ReSharper restore EqualExpressionComparison

		    Assert.Throws<ArgumentNullException>(() => obj.AppendBytesTo(null));
            Assert.AreEqual("EndOfMibView", obj.ToString());
		}
Exemplo n.º 2
0
        public void TestToBytes()
        {
            EndOfMibView obj = new EndOfMibView();

            Assert.Equal(new byte[] { 0x82, 0x00 }, obj.ToBytes());
            Assert.Equal(0, obj.GetHashCode());

            EndOfMibView right = new EndOfMibView();

            Assert.Equal(obj, right);
            Assert.True(obj.Equals(right));
            Assert.True(obj != null);
// ReSharper disable EqualExpressionComparison
            Assert.True(obj == obj);
// ReSharper restore EqualExpressionComparison

            Assert.Throws <ArgumentNullException>(() => obj.AppendBytesTo(null));
            Assert.Equal("EndOfMibView", obj.ToString());
        }
Exemplo n.º 3
0
        public void TestToString()
        {
            var eom = new EndOfMibView();

            Assert.Equal("SNMP End-of-MIB-View", eom.ToString());
        }