public void ItemBlockItemMatch_SocketsBlockItem_ReturnsCorrectResult(FilterPredicateOperator testInputFilterPredicateOperator, int testInputBlockItemSockets, bool expectedResult) { //Arrange var testInputItem = Mock.Of <IItem>(i => i.SocketCount == 3); var testInputBlockItem = new SocketsBlockItem(testInputFilterPredicateOperator, testInputBlockItemSockets); //Act var result = _testUtility.BlockItemMatcher.ItemBlockItemMatch(testInputBlockItem, testInputItem); //Assert Assert.AreEqual(expectedResult, result); }
private static bool SocketsBlockItemMatch(SocketsBlockItem socketsBlockItem, IItem item) { return(NumericFilterPredicateBlockItemMatch(socketsBlockItem, item.Sockets)); }