Esempio n. 1
0
        public void RangeDouble_LeftRight()
        {
            Double left;
            Double right;

            Range <Double> .LeftRight(_labelDouble_1, _labelDouble_1, out left, out right);

            Panel_Range <Double> .AssertCompareEqual(left, _labelDouble_1);

            Panel_Range <Double> .AssertCompareEqual(right, _labelDouble_1);

            Range <Double> .LeftRight(_labelDouble_1, _labelDouble_2, out left, out right);

            Panel_Range <Double> .AssertCompareEqual(left, _labelDouble_1);

            Panel_Range <Double> .AssertCompareEqual(right, _labelDouble_2);

            Range <Double> .LeftRight(_labelDouble_2, _labelDouble_1, out left, out right);

            Panel_Range <Double> .AssertCompareEqual(left, _labelDouble_1);

            Panel_Range <Double> .AssertCompareEqual(right, _labelDouble_2);
        }
Esempio n. 2
0
        public void RangeInt_LeftRight()
        {
            int left;
            int right;

            Range <int> .LeftRight(_labelInt_1, _labelInt_1, out left, out right);

            Panel_Range <int> .AssertCompareEqual(left, _labelInt_1);

            Panel_Range <int> .AssertCompareEqual(right, _labelInt_1);

            Range <int> .LeftRight(_labelInt_1, _labelInt_2, out left, out right);

            Panel_Range <int> .AssertCompareEqual(left, _labelInt_1);

            Panel_Range <int> .AssertCompareEqual(right, _labelInt_2);

            Range <int> .LeftRight(_labelInt_2, _labelInt_1, out left, out right);

            Panel_Range <int> .AssertCompareEqual(left, _labelInt_1);

            Panel_Range <int> .AssertCompareEqual(right, _labelInt_2);
        }
Esempio n. 3
0
        public void RangeTime_LeftRight()
        {
            DateTime left;
            DateTime right;

            Range <DateTime> .LeftRight(_labelTime_1, _labelTime_1, out left, out right);

            Panel_Range <DateTime> .AssertCompareEqual(left, _labelTime_1);

            Panel_Range <DateTime> .AssertCompareEqual(right, _labelTime_1);

            Range <DateTime> .LeftRight(_labelTime_1, _labelTime_2, out left, out right);

            Panel_Range <DateTime> .AssertCompareEqual(left, _labelTime_1);

            Panel_Range <DateTime> .AssertCompareEqual(right, _labelTime_2);

            Range <DateTime> .LeftRight(_labelTime_2, _labelTime_1, out left, out right);

            Panel_Range <DateTime> .AssertCompareEqual(left, _labelTime_1);

            Panel_Range <DateTime> .AssertCompareEqual(right, _labelTime_2);
        }