コード例 #1
0
        public void LoopStatementRequiresStatement()
        {
            var statement = new LoopStatement();

            Expect.Throw <InvalidOperationException>(() => statement.ToString());
        }
コード例 #2
0
        public void DeclarationExpressionRequiresExpressions()
        {
            var d = new DeclarationExpression();

            Expect.Throw <InvalidOperationException>(() => d.ToString());
        }