public override void Update(MovableTarget target) { base.Update(target); if (IsStartUpVerify && !_verify.Update(target.Lon, target.Lat, target.UpdateTime)) { LogService.Error("目标移动距离验证失败!" + this.GetDescription()); } }
public void TestAbNormalMovement() { _verify = new MovableTargetVerify(); Assert.IsTrue(_verify.Update(121.31, 31.24, new DateTime(2015, 1, 29, 9, 0, 0))); Assert.IsFalse(_verify.Update(121.31, 31.243, new DateTime(2015, 1, 29, 9, 0, 3))); }