예제 #1
0
        public void CreateNewLwm2mResourceWithString()
        {
            var lwm2m = new Lwm2mResource("/0", "50");

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

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