Example #1
0
        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);
        }