AjErl.Expressions.ReceiveExpression.HasVariable C# (CSharp) Method

HasVariable() public method

public HasVariable ( ) : bool
return bool
        public bool HasVariable()
        {
            return false;
        }

Usage Example

Ejemplo n.º 1
0
        public void ReceiveMessageWithNoMatch()
        {
            Process process = new Process();
            process.Tell(new Atom("foo"));
            Process.Current = process;

            MatchBody match = new MatchBody(new Atom("ping"), new ConstantExpression("pong"));
            ReceiveExpression expr = new ReceiveExpression(new MatchBody[] { match });

            Assert.IsFalse(expr.HasVariable());

            Assert.IsNull(expr.Evaluate(null));
        }
All Usage Examples Of AjErl.Expressions.ReceiveExpression::HasVariable