public void CSCANTestOne()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 10, 5, 0, 5, 10, 0, 5, 10, 5, 0, 5, 10, 5 };

            int result = Tester.CSCAN(SmallTest, 13);
            int compare = 40;

            Assert.AreEqual(compare, result, "Correct Output");
        }
        public void CSCANTestTwo()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };

            int result = Tester.CSCAN(SmallTest, 11);
            int compare = 42;

            Assert.AreEqual(compare, result, "Correct Output");
        }
        public void CSCANTestAllSameNumber()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };

            int result = Tester.CSCAN(SmallTest, 14);
            int compare = 4;

            Assert.AreEqual(compare, result, "Correct Output");
        }
 static void Main(string[] args)
 {
     int[] requests = new int[1000];
     Algorithms Handler = new Algorithms();
     Handler.GenerateRequests(ref requests);
     Console.WriteLine("Algo \tSeek Distance\n");
     Console.WriteLine("FCFS \t" + Handler.FCFS(requests).ToString());
     Console.WriteLine("SSTF \t" + Handler.SSTF(requests).ToString());
     Console.WriteLine("SCAN \t" + Handler.SCAN(requests).ToString());
     Console.WriteLine("CSCAN\t" + Handler.CSCAN(requests).ToString());
     Console.WriteLine("LOOK \t" + Handler.LOOK(requests).ToString());
     Console.WriteLine("CLOOK\t" + Handler.CLOOK(requests).ToString());
 }
        public void TesterTwo()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 1, 2, 3, 4, 5 };

            int result = Tester.FCFS(SmallTest, 5);
            int compare = 5;

            Assert.AreEqual(compare, result, "Correct Output");
        }
        public void TesterOne()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 10, 5, 0, 5, 10 };

            int result = Tester.FCFS(SmallTest, 5);
            int compare = 30;

            Assert.AreEqual(compare, result, "Correct Output");
        }
        public void SCANTestTwo()
        {
            Algorithms Tester = new Algorithms();

            int[] SmallTest = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,12,13,14,15,16,17,18,19,20,21 };

            int result = Tester.SCAN(SmallTest, 21);
            int compare = 15000;

            Assert.AreEqual(compare, result, "Correct Output");
        }