FirstVariable() 공개 메소드

public FirstVariable ( ) : Variable
리턴 Variable
예제 #1
0
파일: TupleTests.cs 프로젝트: ajlopez/AjErl
        public void FirstVariableWithNestedTuple()
        {
            Tuple tuple = new Tuple(new object[] { new Tuple(new object[] { 1, 2, 3 }), new Variable("X"), 3 });
            var result = tuple.FirstVariable();

            Assert.IsNotNull(result);
            Assert.AreEqual("X", result.Name);
        }
예제 #2
0
파일: TupleTests.cs 프로젝트: ajlopez/AjErl
        public void NoVariable()
        {
            Tuple tuple = new Tuple(new object[] { 1, 2, 3 });
            var result = tuple.FirstVariable();

            Assert.IsNull(result);
        }