public void TestGetSmallerMapStorageChoosesDefaultImpl() { AreaCodeMapStorageStrategy mapStorage = new AreaCodeMap().getSmallerMapStorage(createDefaultStorageMapCandidate()); Assert.IsFalse(mapStorage.GetType() == typeof(FlyweightMapStorage)); }
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)); }