public void CreateShoppingCart_WhenShoppingCartIsCalled() { var factory = new CosmeticsFactory(); var shoppingcart = factory.ShoppingCart(); Assert.IsInstanceOf(typeof(ShoppingCart), shoppingcart); }
public void CreateShoppingCart_ShouldInitialiseCorrectly() { var shoppingCart = factory.ShoppingCart(); Assert.AreEqual("ShoppingCart", shoppingCart.GetType().Name); }