public static string CoordinatesToString(
            CartesianCoordinates coordinates)
        {
            var converter = new CartesianCoordinatesToStringConverter
            {
                Coordinates = coordinates
            };

            converter.Convert();

            return(converter.String);
        }
Esempio n. 2
0
        public void Convert_SetsString_ForGivenData()
        {
            // Arrange
            var data = new CartesianCoordinates
            {
                X         = 1.0,
                Y         = 2.0,
                Z         = 3.0,
                IsUnknown = true
            };

            m_Sut.Coordinates = data;

            // Act
            m_Sut.Convert();

            // Assert
            Assert.AreEqual("[1,2,3]",
                            m_Sut.String);
        }