public void TestIsExisting() { _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCT_TYPES, new List <string> { "Type 1", "Type 2", "Type 3" }); Assert.IsTrue(_productTypesManager.IsExisting("Type 1")); Assert.IsFalse(_productTypesManager.IsExisting("Type 4")); }
public void TestAddProductType() { _model.AddProductType("New Type"); Assert.AreEqual(_productTypesManager.ProductTypes.Count, 4); Assert.IsTrue(_productTypesManager.IsExisting("New Type")); }