public void Constructor_PassedNonSqaureMatrix_Throws()
        {
            StaticState.AreaEdge[,] e1 = new StaticState.AreaEdge[5, 6];
            StaticState.AreaNode[] n1 = new StaticState.AreaNode[5];

            Assert.Throws <ArgumentException>(() => new StaticState(n1, e1));
        }
        public void Constructor_PassedMismatchingSizeArrays_Throws()
        {
            StaticState.AreaEdge[,] e1 = new StaticState.AreaEdge[5, 5];
            StaticState.AreaNode[] n1 = new StaticState.AreaNode[4];

            Assert.Throws <ArgumentException>(() => new StaticState(n1, e1));
        }
        public void Constructor_PassedNullArrays_Throws()
        {
            StaticState.AreaEdge[,] e1 = new StaticState.AreaEdge[5, 5];
            StaticState.AreaNode[] n1 = new StaticState.AreaNode[5];

            Assert.Throws <ArgumentNullException>(() => new StaticState(n1, null));
            Assert.Throws <ArgumentNullException>(() => new StaticState(n1, null));
            Assert.Throws <ArgumentNullException>(() => new StaticState(null, null));
        }
        public static Mock <StaticState> NewStaticStateMock()
        {
            var n = new StaticState.AreaNode[100];
            var e = new StaticState.AreaEdge[100, 100];

            for (int i = 0; i < 100; i++)
            {
                n[i] = new StaticState.AreaNode(i, i, 0, 0, false, 0, 0, false, false, false, false, false, false, false);
                for (int j = 0; j < 100; j++)
                {
                    e[i, j] = new StaticState.AreaEdge(i, j, 0, 0, 0, 0, false, false, false, false, false, false, false, false);
                }
            }
            return(new Mock <StaticState>(n, e));
        }
        private static StaticState.AreaNode[] PrepareNodeDataFromHardCode()
        {
            StaticState.AreaNode[] toRet = new StaticState.AreaNode[numNodes];
            toRet[0] = new StaticState.AreaNode(0, 0, 8, 3, false, 5, 5, false, false, false, false, false, false, true);
            toRet[1] = new StaticState.AreaNode(1, 0, 0, 0, true, 1, 8, false, false, false, false, false, false, true);
            toRet[2] = new StaticState.AreaNode(2, 1, 6, 1, false, 3, 3, false, false, true, false, false, false, true);
            toRet[3] = new StaticState.AreaNode(3, 0, 0, 0, false, 1, 5, true, false, false, false, false, false, true);
            toRet[4] = new StaticState.AreaNode(4, 0, 0, 5, false, 2, 1, true, false, false, false, true, false, true);
            toRet[5] = new StaticState.AreaNode(5, 1, 3, 1, false, 6, 2, false, false, true, false, false, false, true);
            toRet[6] = new StaticState.AreaNode(6, 1, 0, 0, true, 3, 5, false, true, false, false, false, true, true);
            toRet[7] = new StaticState.AreaNode(7, 2, 0, 0, false, 1, 8, true, false, false, false, false, true, true);
            toRet[8] = new StaticState.AreaNode(8, 2, 0, 0, false, 1, 8, true, false, false, true, false, false, true);
            toRet[9] = new StaticState.AreaNode(9, 2, 0, 0, false, 1, 5, true, false, false, false, false, false, true);

            return(toRet);
        }