/// <summary> /// Sets up the model and transform. /// Call from the 'Before' method in subclasses. /// </summary> public AbstractGeneratorTest() { if (model != null) { return; // things are already set up } model = new RendererModel(); elementUtil = new ElementUtility(); sceneGenerator = new BasicSceneGenerator(); }
/// <summary> /// Make a basic generator that creates elements for atoms and bonds. /// </summary> public BasicGenerator() { this.atomGenerator = new BasicAtomGenerator(); this.bondGenerator = new BasicBondGenerator(); this.sceneGenerator = new BasicSceneGenerator(); }
public BasicSceneGeneratorTest() : base() { this.generator = new BasicSceneGenerator(); base.SetTestedGenerator(generator); }