public void TestConstructorLineHandler() { Ecell.IDE.Plugins.PathwayWindow.CanvasControl canvas = null; EdgeHandler testLineHandler = new EdgeHandler(canvas); Assert.IsNotNull(testLineHandler, "Constructor of type, LineHandler failed to create instance."); Assert.Fail("Create or modify test(s)."); }
/// <summary> /// the constructor with initial parameters. /// </summary> /// <param name="control">PathwayControl.</param> /// <param name="modelID">Model id.</param> public CanvasControl(PathwayControl control, string modelID) { m_con = control; m_modelId = modelID; // Preparing PathwayViewCanvas m_pCanvas = new PPathwayCanvas(this); // Preparing OverviewCanvas m_overviewCanvas = new POverviewCanvas(this); m_pCanvas.Camera.RemoveLayer(m_pCanvas.Layer); m_pCanvas.Camera.ViewTransformChanged += new PPropertyEventHandler(Camera_ViewChanged); m_pCanvas.Camera.BoundsChanged += new PPropertyEventHandler(Camera_ViewChanged); m_pCanvas.BackColor = BrushManager.ParseBrushToColor(m_bgBrush); // Preparing layer list m_layers = new Dictionary<string, PPathwayLayer>(); // Preparing system layer m_defaultLayer = new PPathwayLayer(LayerView.DEFAULT_LAYER); AddLayer(m_defaultLayer); // Preparing control layer m_ctrlLayer = new PPathwayLayer(""); AddLayer(m_ctrlLayer); //m_pCanvas.Root.AddChild(m_ctrlLayer); //m_pCanvas.Camera.AddLayer(m_ctrlLayer); // Preparing system ResizeHandlers m_lineHandler = new EdgeHandler(this); // Set ViewMode m_showingId = m_con.ShowingID; m_focusMode = m_con.FocusMode; }
public void TearDown() { _unitUnderTest = null; }
public void SetUp() { Ecell.IDE.Plugins.PathwayWindow.CanvasControl canvas = null; _unitUnderTest = new EdgeHandler(canvas); }