Esempio n. 1
0
        public void AcceptExample()
        {
            var visitor  = new CountingVisitor <double>();
            var vector3D = new Vector3D();

            vector3D.AcceptVisitor(visitor);
            Assert.AreEqual(3, visitor.Count);
        }
Esempio n. 2
0
        public void HasCompletedX()
        {
            var visitor = new ComparableFindingVisitor <double>(2);
            var vector  = new Vector3D();

            vector.SetValues(2, 5, 9);
            vector.AcceptVisitor(visitor);
            Assert.IsTrue(visitor.Found);
        }