public void SegmentDoubleRound_SetSegment_Round_RounderNull()
        {
            SegmentRoundDouble segmentRound = new SegmentRoundDouble(_segmentOriginal, null);

            segmentRound.SetSegment(_label_1, _label_2);
            Panel_InterfaceSegment <Double, Double> .SetSegment(segmentRound, _label_1, _label_2);

            Assert.IsTrue(segmentRound.StartRoundValue == _label_1);
            Assert.IsTrue(segmentRound.EndRoundValue == _label_2);
        }
        public void SegmentDoubleRound_SetSegment_Round()
        {
            _segmentRound.SetSegment(_label_1, _label_2);
            Panel_InterfaceSegment <Double, Double> .SetSegment(_segmentRound, _label_1, _label_2);

            Double etalonStartRound = _rounder.Round(_label_1);
            Double etalonEndRound   = _rounder.Round(_label_2);

            Assert.IsTrue(_segmentRound.StartRoundValue == etalonStartRound);
            Assert.IsTrue(_segmentRound.EndRoundValue == etalonEndRound);
        }
Exemplo n.º 3
0
 public static void SetSegment(ISegment <Int32, Int32> segment)
 {
     Panel_InterfaceSegment <Int32, Int32> .SetSegment(segment, Label_1, Label_2);
 }
Exemplo n.º 4
0
 public static void SetSegment(ISegment <Double, Double> segmentDouble)
 {
     Panel_InterfaceSegment <Double, Double> .SetSegment(segmentDouble, _label_1, _label_2);
 }
Exemplo n.º 5
0
        public void SegmentTime_SetSegment()
        {
            SegmentTime segment = new SegmentTime();

            Panel_InterfaceSegment <DateTime, TimeSpan> .SetSegment(segment, _label_1, _label_2);
        }