Example #1
0
        public void LicenseWriter_WriteAgreementStateWithoutOtherParameters_WritesLicenseCorrectly()
        {
            var reader = new FakeLicenseReader();

            reader.multiple = false;

            LicenseWriter writer = new LicenseWriter(reader);

            writer.WriteAgreementState(false);

            foreach (string s in reader.NewFile)
            {
                if (s == "LIAG:False")
                {
                    Assert.Pass();
                }
            }

            Assert.Fail();
        }
Example #2
0
 /// <summary>
 /// This function is called when the accept button is pressed, just before the window closes.
 /// </summary>
 public void SaveAcceptAgreement()
 {
     LicenseManager.LicensesAccepted = true;
     writer.WriteAgreementState(true);
     LicenseHolder.AcceptedLicense = true;
 }