コード例 #1
0
ファイル: ExpressionTreeTests.cs プロジェクト: Yamesz/MyLab
        public void ExpressionTreeReflectionTest()
        {
            //arrange
            var target = new ExpressionTree();

            long?reflection;
            long?dynamic;
            long?expression;

            //act
            target.ExpressionTreeReflection(
                out reflection, out dynamic, out expression);

            Console.WriteLine(string.Format("reflection => {0}", reflection.Value));
            Console.WriteLine(string.Format("dynamic => {0}", dynamic.Value));
            Console.WriteLine(string.Format("expression => {0}", expression.Value));
            //assert
            reflection.Value.Should().BeGreaterThan(expression.Value);
            dynamic.Value.Should().BeGreaterThan(expression.Value);
        }