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