public void WriteComplexTest() { var graph = new ComplexGraph { Value = new Relation { Id = Guid.NewGuid(), Name = "Test", Description = "Binary", Value = 1 } }; var actual = _context.SerializeAndDeserialize(graph); Assert.NotNull(actual.Value); Assert.Equal(graph.Value.Id, actual.Value.Id); Assert.Equal(graph.Value.Name, actual.Value.Name); Assert.Equal(graph.Value.Description, actual.Value.Description); Assert.Equal(graph.Value.Value, actual.Value.Value); }
protected override void ImplementUserControl() { ComplexGraph complexGraph = new ComplexGraph(); ComplexPlot complexPlot = new ComplexPlot(); ComplexXAxis complexXAxis = new ComplexXAxis(); ComplexYAxis complexYAxis = new ComplexYAxis(); complexGraph.Border = NationalInstruments.UI.Border.ThinFrame3D; complexGraph.Location = new System.Drawing.Point(71, 101); complexGraph.Name = "complexGraph"; complexGraph.Plots.AddRange(new NationalInstruments.UI.ComplexPlot[] { complexPlot}); complexGraph.Size = new System.Drawing.Size(272, 168); complexGraph.TabIndex = 0; complexGraph.UseColorGenerator = true; complexGraph.XAxes.AddRange(new NationalInstruments.UI.ComplexXAxis[] { complexXAxis}); complexGraph.YAxes.AddRange(new NationalInstruments.UI.ComplexYAxis[] { complexYAxis}); complexPlot.XAxis = complexXAxis; complexPlot.YAxis = complexYAxis; controlHandle = complexGraph; InitControl(controlHandle); initContextMenuStrip(); }