public void ConvertSDKToSDK() { sdkAuthChallenge1 = CreateTypicalSDKChallenge(); converter = new ChallengeConverter(sdkAuthChallenge1); sdkAuthChallenge2 = converter.ToSDKChallenge(); Assert.IsNotNull(sdkAuthChallenge2); Assert.AreEqual(sdkAuthChallenge2, sdkAuthChallenge1); }
public void ConvertSDKToAPI() { sdkAuthChallenge1 = CreateTypicalSDKChallenge(); apiAuthChallenge1 = new ChallengeConverter(sdkAuthChallenge1).ToAPIChallenge(); Assert.IsNotNull(apiAuthChallenge1); Assert.AreEqual(apiAuthChallenge1.Question, sdkAuthChallenge1.Question); Assert.AreEqual(apiAuthChallenge1.Answer, sdkAuthChallenge1.Answer); Assert.AreEqual(apiAuthChallenge1.MaskInput, true); }
public void ConvertAPIToSDK() { apiAuthChallenge1 = CreateTypicalAPIChallenge(); sdkAuthChallenge1 = new ChallengeConverter(apiAuthChallenge1).ToSDKChallenge(); Assert.IsNotNull(sdkAuthChallenge1); Assert.AreEqual(sdkAuthChallenge1.Question, apiAuthChallenge1.Question); Assert.AreEqual(sdkAuthChallenge1.Answer, apiAuthChallenge1.Answer); Assert.AreEqual(sdkAuthChallenge1.MaskOption, Challenge.MaskOptions.None); }
public void ConvertNullSDKToAPI() { sdkAuthChallenge1 = null; converter = new ChallengeConverter(sdkAuthChallenge1); Assert.IsNull(converter.ToAPIChallenge()); }