public void GetRegularExpression_PasswordWithSpecialChars_EncodedReversedPassword() { ReversedWordExpressionBuilder builder = new ReversedWordExpressionBuilder(); var result = builder.GetRegularExpression(@"Pa\ssword"); Assert.AreEqual(@"drowss\\aP", result); }
public void GetRegularExpression_Password_EncodedReversedPassword() { ReversedWordExpressionBuilder builder = new ReversedWordExpressionBuilder(); var result = builder.GetRegularExpression("Password"); Assert.AreEqual("drowssaP", result); }