public void WithValidatorMethodTest() { OperationsHeuristic heuristic = new OperationsHeuristic(); Type type = typeof(WithValidator); MethodInfo method = type.GetMethod("SomethingIsValid"); bool selectable = heuristic.IsSelectable(method); Assert.That(selectable, Is.True); }
public void WithNoOperationsTest() { OperationsHeuristic heuristic = new OperationsHeuristic(); Type type = typeof(Simple); MethodInfo[] methods = type.GetMethods(); bool selectable = heuristic.IsSelectable(methods[0]); Assert.That(selectable, Is.False); }