public void TestGetPos() { FormsProgressBar progress = new FormsProgressBar(testDlg["progressBar"]()); int progressPos = progress.Pos; Assert.AreEqual(50, progressPos); }
public void TestGetMaximun() { FormsProgressBar progress = new FormsProgressBar(testDlg["progressBar"]()); int progressMax = progress.Max; Assert.AreEqual(100, progressMax); }
public void TestGetMinimun() { FormsProgressBar progress = new FormsProgressBar(testDlg["progressBar"]()); int progressMin = progress.Min; Assert.AreEqual(0, progressMin); }
public IndexBuildFormDriver(WindowControl window, Async async) { Window = window; Async = async; TargetDirText = new FormsTextBox(Window.Dynamic().TargetDirText); ReferenceButton = new FormsButton(Window.Dynamic().ReferenceButton); UpdateIndexButton = new FormsButton(Window.Dynamic().UpdateIndexButton); AddOuterIndexButton = new FormsButton(Window.Dynamic().AddOuterIndexButton); StopButton = new FormsButton(Window.Dynamic().StopButton); ProgressBar = new FormsProgressBar(Window.Dynamic().ProgressBar); ActiveIndexGrid = new FwFlexGridEx(Window.Dynamic().ActiveIndexGrid); IndexHistoryGrid = new FwFlexGridEx(Window.Dynamic().IndexHistoryGrid); }
static void Assert(string accessPath, FormsProgressBar progressBar) => CaptureAdaptor.AddCode($"{accessPath}.Pos.Is({progressBar.Pos});");