public void Indexer_Get_ReturnsCoordinatesFromSourceList()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            for (int i = 0; i < _nodes.Count; i++)
            {
                Assert.Equal(_nodes[i].Position, target[i]);
            }
        }
        public void Insert_Index_Coordinate_ThowsNotSupportedException()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Throws <NotSupportedException>(() => target.Insert(0, Coordinate.Empty));
        }
        public void Add_Coordinates_ThowsNotSupportedException()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Throws <NotSupportedException>(() => target.Add(new Coordinate[] { Coordinate.Empty }));
        }
        public void Count_GetsNumberOfItemsInSourceCollection()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Equal(_nodes.Count, target.Count);
        }
        public void Indexer_Set_ThrowsNotSupportedException()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Throws <NotSupportedException>(() => target[0] = new Coordinate(10.1, 11.2));
        }
        public void Constructor_Source_SetsSource()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Same(_nodes, target.Source);
        }
        public void Clear_ThowsNotSupportedException()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Throws <NotSupportedException>(() => target.Clear());
        }
        public void RemoveAt_Index_ThowsNotSupportedException()
        {
            WayCoordinateList target = new WayCoordinateList(_nodes);

            Assert.Throws <NotSupportedException>(() => target.RemoveAt(0));
        }