示例#1
0
        public void CalculatePositions_TwoSquarePoints_ReturnFourPoints()
        {
            // arrange
            service = new TwoDimensionsMeshService
            {
                Xs = new double[] { 0, 1, 2 },
                Ys = new double[] { 0, 1 }
            };

            // act
            var result = service.CalculatePositions();

            // assert
            Assert.AreEqual("0,0,0 1,0,0 2,0,0 0,1,0 1,1,0 2,1,0", result);
        }