Esempio n. 1
0
        public void RepTwice()
        {
            var fn = new Rep();

            var result = fn.Apply(null, new object[] { "foo", 2 }, null);

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(Vector));

            var vector = (Vector)result;

            Assert.AreEqual(2, vector.Length);
            Assert.AreEqual("foo", vector[0]);
            Assert.AreEqual("foo", vector[0]);
        }
Esempio n. 2
0
 public bool EditorOnly_Apply(ref Rep rep)
 {
     return((rep != null) && rep.Apply());
 }