Esempio n. 1
0
        public void CreateNewLwm2mResourceWithString()
        {
            var lwm2m = new Lwm2mResource("/0", "50");

            Assert.AreEqual(50, lwm2m.GetIntValue());
            Assert.AreEqual("50", lwm2m.GetStringValue());
        }
Esempio n. 2
0
        public void CreateNewLwm2mResourceWithBytes()
        {
            var lwm2m = new Lwm2mResource("/0", new byte[] { 50 });

            Assert.AreEqual(50, lwm2m.GetIntValue());
            Assert.AreEqual("50", lwm2m.GetStringValue());
        }