public void UpdateWifiPosition1Test() { Coords newPosition = new Coords(0, 0); oc.UpdateWifiPosition(newPosition); Assert.AreEqual(0, oc.WiFiPosition1.x); Assert.AreEqual(0, oc.WiFiPosition1.y); }
//Calls all functions in this class... returns the single possible position of the signal source. public void TriangulatePositionOfSignalSource( Occupant SignalSource, Circle Router1, Circle Router2) { DetermineSignalStrengthFromCoords(SignalSource, Router1, Router2); RandomizeSignalStrength(Router1); RandomizeSignalStrength(Router2); Coords[] PossiblePositions = FindCircleCircleIntersections(Router1, Router2); SignalSource.UpdateWifiPosition(ExcludeImpossiblePositions(SignalSource, PossiblePositions)); }