public void ensureToDTOConvertsValuesToGivenUnit()
        {
            ContinuousDimensionInterval    instance = new ContinuousDimensionInterval(1.0, 10.0, 1.0);
            ContinuousDimensionIntervalDTO dto      = (ContinuousDimensionIntervalDTO)instance.toDTO("cm");

            Assert.Equal(0.1, dto.minValue);
            Assert.Equal(1.0, dto.maxValue);
            Assert.Equal(0.1, dto.increment);
        }
        public void ensureToDTOWithNullUnitStringDefaultsToMilimetres()
        {
            ContinuousDimensionInterval    instance = new ContinuousDimensionInterval(1.0, 10.0, 1.0);
            ContinuousDimensionIntervalDTO dto      = (ContinuousDimensionIntervalDTO)instance.toDTO(null);

            Assert.Equal("mm", dto.unit);
        }
        public void ensureToDTOWithNullUnitStringDoesNotConvertValues()
        {
            ContinuousDimensionInterval    instance = new ContinuousDimensionInterval(1.0, 10.0, 1.0);
            ContinuousDimensionIntervalDTO dto      = (ContinuousDimensionIntervalDTO)instance.toDTO(null);

            Assert.Equal(1.0, dto.minValue);
            Assert.Equal(10.0, dto.maxValue);
            Assert.Equal(1.0, dto.increment);
        }
        public void testToDTO()
        {
            ContinuousDimensionInterval    instance = new ContinuousDimensionInterval(1.0, 10.0, 1.0);
            ContinuousDimensionIntervalDTO dto      = (ContinuousDimensionIntervalDTO)instance.toDTO();

            Assert.Equal("mm", dto.unit);
            Assert.Equal(1.0, dto.minValue);
            Assert.Equal(10.0, dto.maxValue);
            Assert.Equal(1.0, dto.increment);
        }