public void WithIgnorableContractsTest() { ContractHeuristic heuristic = new ContractHeuristic(); Type type = typeof(ImplementsClonable); Type[] contracts = type.GetInterfaces(); bool selectable = heuristic.IsSelectable(contracts[0]); Assert.That(selectable, Is.False); }
public void WithContractsTest() { ContractHeuristic heuristic = new ContractHeuristic(); Type type = typeof(DependencyContractImpl); Type[] contracts = type.GetInterfaces(); bool selectable = heuristic.IsSelectable(contracts[0]); Assert.That(selectable, Is.True); }