Beispiel #1
0
        public void ManyDronesTest()
        {
            var expected = 8;
            var actual   = DroneManager.FindUniqueDeliveryId(new int[] { 2, 5, 4, 8, 6, 3, 1, 4, 2, 3, 6, 5, 1 });

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void UniqueIdInTheMiddleTest()
        {
            var expected = 1;
            var actual   = DroneManager.FindUniqueDeliveryId(new int[] { 3, 2, 1, 2, 3, 2, 2 });

            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void UniqueIdComesFirstTest()
        {
            var expected = 1;
            var actual   = DroneManager.FindUniqueDeliveryId(new int[] { 1, 2, 2 });

            Assert.AreEqual(expected, actual);
        }
Beispiel #4
0
        public void UniqueIdComesLastTest2()
        {
            var expected = 1001;
            var actual   = DroneManager.FindUniqueDeliveryId(new int[] { 3, 17, 32, 32, 3, 17, 1001 });

            Assert.AreEqual(expected, actual);
        }
Beispiel #5
0
        public void OneDroneTest()
        {
            var expected = 1;
            var actual   = DroneManager.FindUniqueDeliveryId(new int[] { 1 });

            Assert.AreEqual(expected, actual);
        }