public void CheckFailModesTest()
        {
            TrackController_Accessor target = new TrackController_Accessor();             // TODO: Initialize to an appropriate value

            target.CheckFailModes();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void UpdateAuthorityTest()
        {
            TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
            List <TrackBlock>        blocks = null;                           // TODO: Initialize to an appropriate value

            target.UpdateAuthority(blocks);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void UpdateAuthoritySignalTest1()
        {
            TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
            TrackBlock block     = null;                                      // TODO: Initialize to an appropriate value
            int        authority = 0;                                         // TODO: Initialize to an appropriate value

            target.UpdateAuthoritySignal(block, authority);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void IsTrainApproachingTest1()
        {
            TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
            TrackBlock dest     = null;                                       // TODO: Initialize to an appropriate value
            bool       expected = false;                                      // TODO: Initialize to an appropriate value
            bool       actual;

            actual = target.IsTrainApproaching(dest);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public void CheckFailModesTest()
 {
     TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
     target.CheckFailModes();
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
 public void UpdateAuthorityTest()
 {
     TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
     List<TrackBlock> blocks = null; // TODO: Initialize to an appropriate value
     target.UpdateAuthority(blocks);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
 public void UpdateAuthoritySignalTest1()
 {
     TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
     TrackBlock block = null; // TODO: Initialize to an appropriate value
     int authority = 0; // TODO: Initialize to an appropriate value
     target.UpdateAuthoritySignal(block, authority);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
 public void IsTrainApproachingTest1()
 {
     TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
     TrackBlock dest = null; // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.IsTrainApproaching(dest);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
        public void IsTrainApproachingTest()
        {
            TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
            TrackBlock dest = new TrackBlock("dest", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, true, "controller", "", "", "");
            TrackBlock b1 = new TrackBlock("track1", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");
            TrackBlock b2 = new TrackBlock("track2", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");
            TrackBlock b3 = new TrackBlock("track3", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");

            b1.Orientation = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.East;
            b1.Status.TrainPresent = true;
            b1.NextBlock = b2;
            b2.Orientation = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.East;
            b2.NextBlock = b3;
            b3.Orientation = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.East;
            b3.NextBlock = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            bool actual;
            actual = target.IsTrainApproaching(dest);
            Assert.IsTrue(actual);

            b1.Orientation = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.West;
            b1.Status.TrainPresent = true;
            b1.PreviousBlock = b2;
            b2.Orientation = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.West;
            b2.PreviousBlock = b3;
            b3.Orientation = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.West;
            b3.PreviousBlock = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsTrue(actual);

            b1.Orientation = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.West;
            b1.PreviousBlock = b2;
            b2.Orientation = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.West;
            b2.PreviousBlock = b3;
            b3.Orientation = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.West;
            b3.PreviousBlock = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsFalse(actual);

            b1.Orientation = TrackOrientation.NorthSouth;
            b1.Status.TrainDirection = Direction.South;
            b1.PreviousBlock = b2;
            b2.Orientation = TrackOrientation.NorthSouth;
            b2.Status.TrainDirection = Direction.South;
            b2.PreviousBlock = b3;
            b3.Orientation = TrackOrientation.NorthSouth;
            b3.Status.TrainDirection = Direction.South;
            b3.PreviousBlock = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsFalse(actual);
        }
        public void IsTrainApproachingTest()
        {
            TrackController_Accessor target = new TrackController_Accessor(); // TODO: Initialize to an appropriate value
            TrackBlock dest = new TrackBlock("dest", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, true, "controller", "", "", "");
            TrackBlock b1   = new TrackBlock("track1", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");
            TrackBlock b2   = new TrackBlock("track2", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");
            TrackBlock b3   = new TrackBlock("track3", TrackOrientation.EastWest, new Point(), 0.0, 0.0, 0.0, false, false, 0, TrackAllowedDirection.Both, false, "controller", "", "", "");

            b1.Orientation           = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.East;
            b1.Status.TrainPresent   = true;
            b1.NextBlock             = b2;
            b2.Orientation           = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.East;
            b2.NextBlock             = b3;
            b3.Orientation           = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.East;
            b3.NextBlock             = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            bool actual;

            actual = target.IsTrainApproaching(dest);
            Assert.IsTrue(actual);

            b1.Orientation           = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.West;
            b1.Status.TrainPresent   = true;
            b1.PreviousBlock         = b2;
            b2.Orientation           = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.West;
            b2.PreviousBlock         = b3;
            b3.Orientation           = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.West;
            b3.PreviousBlock         = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsTrue(actual);

            b1.Orientation           = TrackOrientation.EastWest;
            b1.Status.TrainDirection = Direction.West;
            b1.PreviousBlock         = b2;
            b2.Orientation           = TrackOrientation.EastWest;
            b2.Status.TrainDirection = Direction.West;
            b2.PreviousBlock         = b3;
            b3.Orientation           = TrackOrientation.EastWest;
            b3.Status.TrainDirection = Direction.West;
            b3.PreviousBlock         = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsFalse(actual);

            b1.Orientation           = TrackOrientation.NorthSouth;
            b1.Status.TrainDirection = Direction.South;
            b1.PreviousBlock         = b2;
            b2.Orientation           = TrackOrientation.NorthSouth;
            b2.Status.TrainDirection = Direction.South;
            b2.PreviousBlock         = b3;
            b3.Orientation           = TrackOrientation.NorthSouth;
            b3.Status.TrainDirection = Direction.South;
            b3.PreviousBlock         = dest;
            target.AddTrackBlock(b1);
            target.AddTrackBlock(b2);
            target.AddTrackBlock(b3);
            target.AddTrackBlock(dest);
            actual = target.IsTrainApproaching(dest);
            Assert.IsFalse(actual);
        }