コード例 #1
0
		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());
		}
コード例 #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());
        }
コード例 #3
0
		public void TestToBytes()
		{
			EndOfMibView obj = new EndOfMibView();
			Assert.AreEqual(new byte[] { 0x82, 0x00 }, obj.ToBytes());
		}
コード例 #4
0
        public void TestToBytes()
        {
            EndOfMibView obj = new EndOfMibView();

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