public void IsNumber_WhenGivenInputString_ShouldReturnExpectedValue(string input, bool expected) { var sut = new CheckEx(); var actual = sut.IsNumber(input); Assert.AreEqual(expected, actual); }
public void DoAlgoritm(CheckEx checkEx) { if (checkEx.RGR) { _ex = new RGR(_graf); } if (checkEx.Laba4BFS) { _ex = new Laba4BFS(_mainDrawer, _graf); if (_mainDrawer.GetCheckedVetex() < 0) { return; } } if (checkEx.Laba4DFS) { _ex = new Laba4DFS(_mainDrawer, _graf); if (_mainDrawer.GetCheckedVetex() < 0) { return; } } if (checkEx.Laba5) { _ex = new Laba5(_mainDrawer, _graf); } if (checkEx.Laba6) { if (!_mainDrawer.FullListForDej()) { return; } _ex = new Laba6(_mainDrawer, _graf); } _ex.DoIt(); algoritmComplete?.Invoke(); }