using XFEExtension.NetCore.XUnit.Attributes; using XFEEDToolBox.Core.Galaxy; namespace XFEEDToolBox.Test; [TestFixture] public class StarHoldTests { [Test] public void StationaryHoldSelectsOnceAndQuickTapDoesNotChooseDestination() { var gesture=new StarHoldGesture();gesture.Begin(20,30,100,true); Check.That(!gesture.TryConfirm(699));gesture.Move(22,32); Check.That(gesture.TryConfirm(700));Check.That(!gesture.TryConfirm(1400)); gesture.Begin(20,30,2000,true);gesture.Cancel();Check.That(!gesture.TryConfirm(3000)); } [Test] public void CameraDragAndRightButtonNeverChooseAStar() { var gesture=new StarHoldGesture();gesture.Begin(20,30,0,true);gesture.Move(27,30);gesture.Move(20,30); Check.That(!gesture.TryConfirm(1000)); gesture.Begin(20,30,0,false);Check.That(!gesture.TryConfirm(1000)); gesture.Begin(20,30,0,true);gesture.Move(double.NaN,30);Check.That(!gesture.TryConfirm(1000)); } }