public void Destroy()
 {
     defaultPwdGen 	= null;
     customPwdGen 	= null;
     defaultPassword	= null;
     customPassword	= null;
 }
 public void DefaultMaximum()
 {
     PasswordGenerator max = new PasswordGenerator();
     max.Minimum = 0;
     max.Maximum = 0;
     Assertion.AssertEquals("Maximum should be set to default value if property value is lesser.", 10, max.Maximum);
 }
 public void DefaultMinimum()
 {
     PasswordGenerator min = new PasswordGenerator();
     min.Minimum = 0;
     Assertion.AssertEquals("Minimum should be set to default value if property value is lesser.", 6, min.Minimum);
 }
        public void Init()
        {
            defaultPwdGen   = new PasswordGenerator();
            customPwdGen    = new PasswordGenerator();

            customPwdGen.Minimum 				= 8;
            customPwdGen.Maximum				= 15;
            customPwdGen.ConsecutiveCharacters 	= false;
            customPwdGen.RepeatCharacters		= false;

            defaultPassword 					= null;
            customPassword   					= null;
        }
Beispiel #5
0
 private void PwdGenUI_Load(object sender, System.EventArgs e)
 {
     pwdGen = new PasswordGenerator();
 }