示例#1
0
        public void TestCountDiv()
        {
            int A = 6, B = 11, K = 2;
            int expected = 3;
            int actual   = Lessons.CountDiv(A, B, K);

            Assert.AreEqual(expected, actual);

            A        = 11; B = 345; K = 17;
            expected = 20;
            actual   = Lessons.CountDiv(A, B, K);

            Assert.AreEqual(expected, actual);

            A        = 0; B = 0; K = 11;
            expected = 1;
            actual   = Lessons.CountDiv(A, B, K);

            Assert.AreEqual(expected, actual);
        }