public void WhenCatalogItemDoesNotHaveTag_HasTag_ReturnsFalse()
        {
            IMyCatalogItem mockCatalogItem = Substitute.For <IMyCatalogItem>();

            mockCatalogItem.HasTag("SomeTag").Returns(false);

            MyItemInstance systemUnderTest = new MyItemInstance();

            systemUnderTest.SetCatalogItem(mockCatalogItem);

            Assert.IsFalse(systemUnderTest.HasTag("SomeTag"));
        }
Example #2
0
 public bool HasTag(string i_tag)
 {
     return(CatalogItem.HasTag(i_tag));
 }