public void ArduinoDomeConstructorTest() { string com = string.Empty; // TODO: Initialize to an appropriate value bool flag = false; // TODO: Initialize to an appropriate value ArduinoDome target = new ArduinoDome(com, flag); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void BuildArduinoCommandTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value string cmd = string.Empty; // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; actual = target.BuildArduinoCommand(cmd); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void ArduinoDomeConstructorTest2() { ArduinoDome target = new ArduinoDome(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void VersionTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value string actual; actual = target.Version; Assert.Inconclusive("Verify the correctness of this test method."); }
public void set_encoder_polTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value uint pol = 0; // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.set_encoder_pol(pol); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void SlewTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value Direction dir = new Direction(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.Slew(dir); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void set_debug_modeTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value DebugMode mode = new DebugMode(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.set_debug_mode(mode); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void InitTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value target.Init(); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void GearConfigTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value uint enc = 0; // TODO: Initialize to an appropriate value double gear = 0F; // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.GearConfig(enc, gear); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void DomePositionTest() { ArduinoDome target = new ArduinoDome(); // TODO: Initialize to an appropriate value double expected = 0F; // TODO: Initialize to an appropriate value double actual; target.DomePosition = expected; actual = target.DomePosition; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
/// <summary> /// Initializes a new instance of the <see cref="Arduino"/> class. /// Must be public for COM registration. /// </summary> public Dome() { ReadProfile(); // Read device configuration from the ASCOM Profile store tl = new TraceLogger("", "Arduino"); tl.Enabled = traceState; tl.LogMessage("Doem", "Starting Dome"); tl.LogMessage("Dome", "Setting Chooser Form"); try { SetupDialog(); } catch (Exception ex) { if (ex.Message.Contains("Cancel")) return; else throw ex; } tl.LogMessage("Dome", "Starting initialisation"); connectedState = false; // Initialise connected to false utilities = new Util(); //Initialise util object astroUtilities = new AstroUtils(); // Initialise astro utilities object //TODO: Implement your additional construction here using (Profile p = new Profile()) { p.DeviceType = "Dome"; comPort = p.GetValue(driverID, "comPort"); _arduino = new ArduinoDome(comPort, isArduinoBootLoader); } RegisterASCOM((Type)null); _position = 0.0; Parked = true; ParkPosition = 0.0; IsSlewing = false; Threshold = 2.0; connectedState = false; // Braking = 0.0; DomeTimer = new System.Windows.Threading.DispatcherTimer(); DomeTimer.Interval = TimeSpan.FromSeconds(3);//new TimeSpan(0, 0, 3); DomeTimer.Tick += DomeTimer_Tick; DomeTimer.IsEnabled = true; DomeTimer.Stop(); slewThread.WorkerReportsProgress = true; slewThread.WorkerSupportsCancellation = true; slewThread.DoWork += new DoWorkEventHandler(slewThread_Body); slewThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(slewThread_Completed); //slewThread.DoWork += slewThread_Body; //slewThread.RunWorkerCompleted += slewThread_Completed; tl.LogMessage("Dome", "Completed initialisation"); }