public void TestTransformations(string source, string expectedResult) { var messagePostProcessor = new MessagePostProcessor(_wrapper); var result = messagePostProcessor.Process("a", Guid.Parse("d133c970-580f-4926-9588-3f49bb914162"), source); Assert.IsTrue(result.Equals(expectedResult), $"{nameof(result)} {result} != {nameof(expectedResult)} {expectedResult}"); }
public void TestPlainText(string text) { var messagePostProcessor = new MessagePostProcessor(_wrapper); var result = messagePostProcessor.Process("a", Guid.Parse("d133c970-580f-4926-9588-3f49bb914162"), text); Assert.IsTrue(text.Equals(result), $"{nameof(text)} {text} != {nameof(result)} {result}"); }
public void TestPlainTextWithLineBreaks(string text, bool mustBeEqual) { var messagePostProcessor = new MessagePostProcessor(_wrapper); var result = messagePostProcessor.Process("a", Guid.Parse("d133c970-580f-4926-9588-3f49bb914162"), text); var comparisonResult = text.Equals(result); if (mustBeEqual) { Assert.IsTrue(comparisonResult, $"{nameof(text)} {text} != {nameof(result)} {result}"); } else { Assert.IsFalse(comparisonResult, $"{nameof(text)} {text} == {nameof(result)} {result}"); } }