示例#1
0
        public void TestGetSmallerMapStorageChoosesDefaultImpl()
        {
            AreaCodeMapStorageStrategy mapStorage =
                new AreaCodeMap().getSmallerMapStorage(createDefaultStorageMapCandidate());

            Assert.IsFalse(mapStorage.GetType() == typeof(FlyweightMapStorage));
        }
示例#2
0
        public void TestGetSmallerMapStorageChoosesFlyweightImpl()
        {
            var mapStorage =
                new AreaCodeMap().GetSmallerMapStorage(CreateFlyweightStorageMapCandidate());

            Assert.True(mapStorage.GetType() == typeof(FlyweightMapStorage));
        }
 public void TestGetSmallerMapStorageChoosesFlyweightImpl()
 {
     AreaCodeMapStorageStrategy mapStorage =
         new AreaCodeMap().getSmallerMapStorage(createFlyweightStorageMapCandidate());
     Assert.True(mapStorage.GetType() == typeof(FlyweightMapStorage));
 }