public void FindMinLength_Case12()
        {
            // Assign
            long count = 998001;
            int width = 1000000000;
            int height = 1000000000;
            var expected = 999000000000;
            var bugtrk = new Bugtrk();

            // Act
            var result = bugtrk.FindMinLength(count, width, height);

            // Assert
            Assert.AreEqual(expected, result);
        }
Example #2
0
        private static void Main(string[] args)
        {
            var bugtrk = new Bugtrk();
            string inputFileName;
            string outputFileName;

            if (args == null || args.Length == 0)
            {
                inputFileName = "bugtrk.in";
                outputFileName = "bugtrk.out";
            }
            else if (args.Length == 2)
            {
                inputFileName = args[0];
                outputFileName = args[1];
            }
            else
            {
                Console.WriteLine("Command line parameters violation!");
                return;
            }

            bugtrk.Run(inputFileName, outputFileName);
        }
        private static void Main(string[] args)
        {
            var    bugtrk = new Bugtrk();
            string inputFileName;
            string outputFileName;

            if (args == null || args.Length == 0)
            {
                inputFileName  = "bugtrk.in";
                outputFileName = "bugtrk.out";
            }
            else if (args.Length == 2)
            {
                inputFileName  = args[0];
                outputFileName = args[1];
            }
            else
            {
                Console.WriteLine("Command line parameters violation!");
                return;
            }

            bugtrk.Run(inputFileName, outputFileName);
        }
        public void FindMinLength_Case4()
        {
            // Assign
            long count = 32416188257;
            int width = 105143;
            int height = 15489949;
            var expected = 229777903466;
            var bugtrk = new Bugtrk();

            // Act
            var result = bugtrk.FindMinLength(count, width, height);

            // Assert
            Assert.AreEqual(expected, result);
        }