Exemplo n.º 1
0
        public void TestMethod1()
        {
            NumberClass input  = new NumberClass(917);
            var         result = input.NextSmaller();
            var         expect = 791;

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

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

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

            Assert.AreEqual(expect, result);
        }