コード例 #1
0
        public void DoNotSwapNumbers()
        {
            double num1 = 20, num2 = 10;

            ValueSequencer.GetNumberOrder(ref num1, ref num2);
            Assert.AreEqual(num1 > num2, true);
        }
コード例 #2
0
        public void SwapNumbersWhenN1LessThanN2()
        {
            double num1 = 10, num2 = 20;

            ValueSequencer.GetNumberOrder(ref num1, ref num2);
            Assert.AreEqual(num1 > num2, true);
        }