コード例 #1
0
        public void Reduce_Reducible_ThrowsIfNotOverridden()
        {
            var expression = new ReducibleExtensionExpressionNotOverridingReduce(typeof(int));

            Assert.That(
                () => expression.Reduce(),
#if !NET_3_5
                Throws.ArgumentException
#else
                Throws.InvalidOperationException.With.Message.EqualTo("Reducible nodes must override the Reduce method.")
#endif
                );
        }
コード例 #2
0
        public void Reduce_Reducible_ThrowsIfNotOverridden()
        {
            var expression = new ReducibleExtensionExpressionNotOverridingReduce(typeof(int));

            expression.Reduce();
        }