public void AddByTwoIndecesAndValueTest()
        {
            CellEdge edge = new CellEdge(c1, c2, new Passable());

            Tester.Add(c1, c2, edge);

            Tester[c1, c2].Should().BeSameAs(edge);
            Tester[c2, c1].Should().BeSameAs(edge);
        }
        public void ContainsTest()
        {
            Tester.Contains(Tester[c1, c3]).Should().BeTrue();

            CellEdge edge = new CellEdge(c1, c2, new Passable());

            Tester.Contains(edge).Should().BeFalse();

            CellEdge edge2 = new CellEdge(c1, c3, new Passable());

            Tester.Contains(edge2).Should().BeFalse();
        }
        public void AddValueTest()
        {
            CellEdge edge = new CellEdge(c1, c2, new Passable());

            Tester.Add(edge);

            Tester[c1, c2].Should().BeSameAs(edge);
            Tester[c2, c1].Should().BeSameAs(edge);

            CellEdge edge2 = new CellEdge(c1, c3, new Impassable());

            Tester.Add(edge2);

            Tester[c1, c3].Should().BeSameAs(edge2);
            Tester[c3, c1].Should().BeSameAs(edge2);
        }
 public void CopyToTest()
 {
     CellEdge[] arr = new CellEdge[Tester.Count];
     Tester.CopyTo(arr, 0);
     arr[0].Should().BeSameAs(Tester[c1, c3]);
 }