public void StartedRegistration_Equals() { StartedRegistration startedRegistration = StartedRegistration.FromJson(JsonData); StartedRegistration sameStartedRegistration = new StartedRegistration(TestConts.SERVER_CHALLENGE_REGISTER_BASE64, TestConts.APP_ID_ENROLL); Assert.IsTrue(startedRegistration.Equals(sameStartedRegistration)); }
public void StartedRegistration_FromJson() { StartedRegistration startedRegistration = StartedRegistration.FromJson(JsonData); Assert.IsNotNull(startedRegistration); Assert.IsNotNull(startedRegistration.Version); Assert.IsNotNull(startedRegistration.Challenge); Assert.IsNotNull(startedRegistration.AppId); Assert.IsNotNull(startedRegistration.ToJson()); Assert.IsTrue(startedRegistration.GetHashCode() != 0); Assert.AreEqual(TestConts.SERVER_CHALLENGE_REGISTER_BASE64, startedRegistration.Challenge); Assert.AreEqual(TestConts.APP_ID_ENROLL, startedRegistration.AppId); }