예제 #1
0
        public void TestMethod1()
        {
            NumberClass input  = new NumberClass(917);
            var         result = input.NextSmaller();
            var         expect = 791;

            Assert.AreEqual(expect, result);
        }
예제 #2
0
        public void TestMethod3()
        {
            NumberClass input  = new NumberClass(59884848483559);
            var         result = input.NextSmaller();
            var         expect = 59884848459853;

            Assert.AreEqual(expect, result);
        }
예제 #3
0
        public void TestMethod4()
        {
            NumberClass input  = new NumberClass(29009);
            var         result = input.NextSmaller();
            var         expect = 20990;

            Assert.AreEqual(expect, result);
        }
예제 #4
0
        public void TestMethod2()
        {
            NumberClass input  = new NumberClass(123456798);
            var         result = input.NextSmaller();
            var         expect = 123456789;

            Assert.AreEqual(expect, result);
        }