public void ItemBlockItemMatch_LinkedSocketsBlockItem_ReturnsCorrectResult(FilterPredicateOperator testInputFilterPredicateOperator, int testInputBlockItemLinkedSockets, bool expectedResult) { //Arrange var testInputItem = Mock.Of <IItem>(i => i.LinkedSockets == 3); var testInputBlockItem = new LinkedSocketsBlockItem(testInputFilterPredicateOperator, testInputBlockItemLinkedSockets); //Act var result = _testUtility.BlockItemMatcher.ItemBlockItemMatch(testInputBlockItem, testInputItem); //Assert Assert.AreEqual(expectedResult, result); }
private static bool LinkedSocketsBlockItemMatch(LinkedSocketsBlockItem linkedSocketsBlockItem, IItem item) { return(NumericFilterPredicateBlockItemMatch(linkedSocketsBlockItem, item.LinkedSockets)); }