public void Simple() { var visitor = new CountingVisitor <double>(); var vector = new VectorN(2); vector.AcceptVisitor(visitor); Assert.AreEqual(2, visitor.Count); }
public void Completed() { var visitor = new ComparableFindingVisitor <double>(5); var vector = new VectorN(3); vector.SetValues(2, 5, 9); vector.AcceptVisitor(visitor); Assert.IsTrue(visitor.Found); }