You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhanced FastSearcherTests with additional test cases and improved assertions using FluentAssertions.
Introduced new test cases to cover additional scenarios:
FindIndex_ItemPresentInArrayOfDuplicates_IndexCorrect: Verifies correct behavior when searching for an item in an array with all duplicate values.
FindIndex_ItemMissingInArrayOfDuplicates_ItemNotFoundExceptionThrown: Ensures an exception is thrown when searching for an absent item in an array of duplicates.
FindIndex_ItemOutOfRange_ItemNotFoundExceptionThrown: Confirms exceptions are raised for items smaller or larger than the array's range.
Replaced NUnit's traditional Assert syntax with FluentAssertions for:
Improved readability.
Consistent assertion style.
Expressive exception validation using act.Should().Throw<Exception>().
Maintained edge case validation for empty arrays, out-of-range values, and general functionality.
These updates refine test clarity, improve maintainability, and ensure comprehensive coverage of the FastSearcher class.
0 commit comments