public void ReplaceSequence_WhenGivenIntArray_ReturnsArrayWithTermsReplaced(int[] input, string[] expected, ReplaceTermSetting[] settings) { // Arrange var config = new TermReplacementConfiguration() { ReplaceTermSettings = settings }; var termReplacer = new TermReplacer(Options.Create <TermReplacementConfiguration>(config)); // Act var result = termReplacer.ReplaceSequence(input); // Assert Assert.Equal(expected, result); }
public void ReplaceTerm_WhenGivenTerm_ReplacesDependingOnSetting(int input, string expected, ReplaceTermSetting[] settings) { // Arrange var config = new TermReplacementConfiguration() { ReplaceTermSettings = settings }; var termReplacer = new TermReplacer(Options.Create <TermReplacementConfiguration>(config)); // Act var result = termReplacer.ReplaceTerm(input); // Assert Assert.Equal(expected, result); }