public static void MutateReplacesAntecedentsWithReplacement(string input, string[] antecedents, string replacement) { var attribute = new ReplaceAttribute(antecedents) { Replacement = replacement }; Assert.Equal("This is a nightmare!", attribute.Mutate(input)); }
public static void MutateReplacesAntecedentWithNothing(string input, string antecedent) { var attribute = new ReplaceAttribute(antecedent); Assert.Equal("This is a nightmare!", attribute.Mutate(input)); }