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
          );
    }
Exemplo n.º 2
0
 public void Reduce_Reducible_ThrowsIfNotOverridden ()
 {
   var expression = new ReducibleExtensionExpressionNotOverridingReduce (typeof (int));
   expression.Reduce ();
 }