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()); }
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()); }
public void TestToBytes() { EndOfMibView obj = new EndOfMibView(); Assert.AreEqual(new byte[] { 0x82, 0x00 }, obj.ToBytes()); }