public void CheckForReversedWord_RoundTrip()
 {
   WordListProcessOptionsElement element = new WordListProcessOptionsElement();
   Assert.IsFalse(element.CheckForReversedWord);
   element.CheckForReversedWord = true;
   Assert.IsTrue(element.CheckForReversedWord);
 }
 public void CheckForNumberSuffix_RoundTrip()
 {
   WordListProcessOptionsElement element = new WordListProcessOptionsElement();
   Assert.IsFalse(element.CheckForNumberSuffix);
   element.CheckForNumberSuffix = true;
   Assert.IsTrue(element.CheckForNumberSuffix);
 }
    public void WordListProcessOptions_RoundtripValue()
    {
      var value = new WordListProcessOptionsElement();
      var section = new PasswordValidationSection();
      section.WordListProcessOptions = value;

      // Through the regular getter
      Assert.AreSame(value, section.WordListProcessOptions);

      // Through the expicit interface getter
      var options = ((IPasswordValidationSettings) section).WordListProcessOptions;
      Assert.AreSame(value, options);
    }