Example #1
0
        public void GetDataTest()
        {
            NewReceivedData data = new NewReceivedData();

            while (!data.IsNodeSet())
            {
                System.Threading.Thread.Sleep(1000);
            }

            data.GetData();

            Assert.IsNotNull(data.data.confidenceMap, "confidenceMap");
            Assert.IsNull(data.data.phaseMap, "phaseMap");
            Assert.IsNotNull(data.data.depthMap, "depthMap");
            Assert.IsNull(data.data.depthMapFloatingPoint, "depthMapFloatingPoint");
            Assert.IsNotNull(data.data.vertices, "vertices");
            Assert.IsNull(data.data.verticesFloatingPoint, "verticesFloatingPoint");
            Assert.IsNotNull(data.data.uvMap, "uvMap");
            Assert.AreEqual((UInt64)0, data.data.timeOfCapture, "timeOfCapture");
            Assert.AreEqual((UInt64)0, data.data.timeOfArrival, "timeOfArrival");
            Assert.AreEqual((UInt32)0, data.data.droppedSampleCount, "droppedSampleCount");
            Assert.AreEqual((UInt32)0, data.data.cumulativeDroppedSampleCount, "cumulativeDroppedSampleCount");
        }
Example #2
0
        public void IsNodeSetTest()
        {
            NewReceivedData data = new NewReceivedData();

            Assert.IsTrue(data.IsNodeSet());
        }