예제 #1
0
        public void TestRemoveWay()
        {
            Way testWay = new Way();

            testWay.Id = -1;
            var source = new MemoryDataSource();

            source.AddWay(testWay);

            // test if the way is actually there.
            Assert.AreEqual(testWay, source.GetWay(-1));

            // remove the way.
            source.RemoveWay(-1);

            // test if the way is actually gone.
            Assert.IsNull(source.GetWay(-1));
        }