public void Comparison_AsFunction() { Comparison <string> comparison = (x, y) => x.CompareTo(y); var func = comparison.AsFunction(); Assert.Same(comparison.Target, func.Target); Assert.Same(comparison.Method, func.Method); }
public void Comparison_AsFunction() { Comparison <string> comparison = (x, y) => x.CompareTo(y); var func = comparison.AsFunction(); Assert.Same(comparison.Target, func.Target); Assert.Same(comparison.Method, func.Method); }