public void TestGetProductGamesFound() { ProductDistributor producer = new ProductDistributor(); Product testProduct = ProductFlyweightFactory.MakeProduct(); producer.AddProduct(testProduct); Assert.IsNotNull(producer.GetProduct(testProduct.Game.GetName())); }
public void TestGetProductNoGamesFound() { ProductDistributor producer = new ProductDistributor(); Assert.IsNull(producer.GetProduct("Call of Duty")); }