public async void Anaram_Filter_Should_Return_Null_When_Wordlist_is_null() { //Arrange var factory = PipelineFactory.Instance(); var results = factory.Process(null, new UserFilters() { InputAnagram = "awr" }); //Act& Assert Assert.Null(results); }
public async void Anaram_Filter_Should_Return_Null_When_No_Matches_Found(params string[] wordList) { //Arrange var factory = PipelineFactory.Instance(); var results = factory.Process(wordList, new UserFilters() { InputAnagram = "xyz" }); //Act& Assert Assert.Empty(results); }
public async void Anaram_Filter_Should_Return_Anarams(params string[] wordList) { //Arrange var factory = PipelineFactory.Instance(); var results = factory.Process(wordList.ToList(), new UserFilters() { InputAnagram = "awr" }); //Act& Assert Assert.Contains("war", wordList); Assert.Contains("raw", wordList); }