public void FlickAngleTest() { RoomMap map = new RoomMap(100, 100); map.AddTracker("tracker1", new Point3D(5, 0, 5), 90); Assert.IsTrue(map.AddItem("mobile1", new Point3D(10, 0, 10), "tracker1")); map.ChangeAbsoluteOrientation("mobile1", 45); map.Items.ElementAt(0).Value.Shape = new Circle(3); map.Items.ElementAt(0).Value.SetLocation(); Assert.AreEqual(Shape.Circle, map.Items.ElementAt(0).Value.Shape.Identity); Assert.IsTrue(map.AddItem("mobile2", new Point3D(12.1, 0, 12.1), "tracker1")); map.Items.ElementAt(1).Value.Shape = new Circle(3); map.Items.ElementAt(1).Value.SetLocation(); Assert.AreEqual(0, map.GetFlickAngle("mobile1", "mobile2")); map.ChangeAbsoluteOrientation("mobile2", 0); Assert.AreEqual(225, map.GetFlickAngle("mobile1", "mobile2")); }