public void StartWith_LowerCase_Empty(string searchText) { // Arrange var source = new EnumerableQuery <Services>(new List <Services> { new Services { Name = "My Service 1" } }); // Act var result = source.StartWith(searchText); // Assert result.Should().BeNull(); }
public void StartWith_UpperCase_NotEmpty(string searchText) { // Arrange var source = new EnumerableQuery <Services>(new List <Services> { new Services { Name = "My Service 1" }, new Services { Name = "Another Service 3" } }); // Act var result = source.StartWith(searchText); // Assert result.Should().Be("My Service 1"); }