private void Verify(string searchString, int?expectedId, bool exactMatchFlag) { var id = SearchKeywordsResolver.TryGetId(searchString, KeysForPerfectMath, out var isPerfectMatch); id.ShouldBe(expectedId, $"ExpectedId was wrong for {searchString}"); isPerfectMatch.ShouldBe(exactMatchFlag, $"isPerfectMathc was wrong for {searchString}"); }
private void Verify(string searchString, int?expectedId, bool exactMatchFlag) { bool isPerfectMatch; int? id = SearchKeywordsResolver.TryGetId(searchString, keysForPerfectMath, out isPerfectMatch); Assert.AreEqual(expectedId, id, $"ExpectedId was wrong for {searchString}"); Assert.AreEqual(exactMatchFlag, isPerfectMatch, $"isPerfectMathc was wrong for {searchString}"); }