Exemplo n.º 1
0
 public void Test()
 {
     var sys = new SysORID(3, new ObjectIdentifier(".1.3.6.1.2.1.1.9.1.2.3"));
     Assert.AreEqual(".1.3.6.1.2.1.1.9.1.2.3", sys.Variable.Id.ToString());
     Assert.AreEqual(".1.3.6.1.2.1.1.9.1.2.3", sys.Data.ToString());
     Assert.Throws<AccessFailureException>(() => sys.Data = OctetString.Empty);
 }
Exemplo n.º 2
0
        public void Test()
        {
            var sys = new SysORID(3, new ObjectIdentifier("1.3.6.1.2.1.1.9.1.2.3"));

            Assert.Equal("1.3.6.1.2.1.1.9.1.2.3", sys.Variable.Id.ToString());
            Assert.Equal("1.3.6.1.2.1.1.9.1.2.3", sys.Data.ToString());
            Assert.Throws <AccessFailureException>(() => sys.Data = OctetString.Empty);
        }