public void DetermineSignalStrengthFromCoordsTest2() { oc.UpdatePositions(80, 60); trian.DetermineSignalStrengthFromCoords(oc, r1, r2); Assert.AreEqual(Math.Sqrt(80 * 80 + 60 * 60), r1.Radius); Assert.AreEqual(80, r2.Radius); }
public void Init() { possitions[0] = new Coords(-23, 10); possitions[1] = new Coords(2, 10); r1 = new Circle(0, 0); r2 = new Circle(0, 60); p1 = new Coords(0, 0); p2 = new Coords(0, 3); trian = new Triangulation(r1, r2); oc = new Occupant(); oc.UpdatePositions(60, 60); }
public void Init() { possitions[0] = new Coords(-23, 10); possitions[1] = new Coords(2, 10); r1 = new Circle(0, 0); r2 = new Circle(0, 60); p1 = new Coords(0, 0); p2 = new Coords(0, 3); trian = new Triangulation(r1, r2); lightToActivate = new DetermineLightsToActivate(200, 60, 400, trian); oc = new Occupant(); oc.UpdatePositions(100, 100); }
public void UpdatePositionsTestPos1() { oc.UpdatePositions(0, 0); Assert.AreEqual(0, oc.Position1.x); Assert.AreEqual(0, oc.Position1.y); }
public void LightsToActivateOnUser_LightingUnitTest() { oc.UpdatePositions(0, 0); List <LightingUnit> expectedList = InitLightingUnitsPositionsForOnUserTest(lightToActivate.Radius); List <LightingUnit> actualList = lightToActivate.LightsToActivateOnUser(oc, list); Assert.AreEqual(expectedList.Count, actualList.Count); }