示例#1
0
        public void GetSpatialCoordinatesTest()
        {
            double[,] data = { { 1, 2.1, 3.2 } };
            int[,] coords  = { { 1, 2, 3 } };

            _dataset.AppendFromRawData(data, coords);

            var spatialCoordinates = _dataset.GetSpatialCoordinates(spectrumIdx: _dataset.SpectrumCount - 1);

            Assert.AreEqual(spatialCoordinates.X, actual: 1, message: "Dataset returned wrong X spacial coordinate.");
            Assert.AreEqual(spatialCoordinates.Y, actual: 2, message: "Dataset returned wrong Y spacial coordinate.");
            Assert.AreEqual(spatialCoordinates.Z, actual: 3, message: "Dataset returned wrong Z spacial coordinate.");
        }