public void TestIsRegisterationValidNegative() { var registerer = new Registerer("入海勇人"); registerer.CompanyName = "Automation Kobo Project"; registerer.ApplicationName = "EasyReporting"; registerer.RegistrationKey = "asldkfjalskdfjalskdfalsdkfj"; string passPhrase = "H311o W0r1D"; bool result = registerer.IsRegistrationKeyValid(passPhrase); Assert.IsFalse(result); }
public void TestIsRegisterationValid() { var registerer = new Registerer("入海勇人"); registerer.CompanyName = "Automation Kobo Project"; registerer.ApplicationName = "EasyReporting"; registerer.RegistrationKey = "0698-DC1-A08-01ADF5"; string passPhrase = "H311o W0r1D"; bool result = registerer.IsRegistrationKeyValid(passPhrase); Assert.IsTrue(result); }