public void ConvertSDKUnrecognizedAuthenticationMethodToAPIUnknownValue() { apiAuthScheme1 = "NEWLY_ADDED_AUTHENTICATION_METHOD"; AuthenticationMethod unrecognizedAuthenticationMethod = AuthenticationMethod.valueOf(apiAuthScheme1); string acutalApiScheme = new AuthenticationMethodConverter(unrecognizedAuthenticationMethod).ToAPIAuthMethod(); Assert.AreEqual(apiAuthScheme1, acutalApiScheme); }
public void whenBuildingAuthenticationMethodWithUnknownAPIValueThenUNRECOGNIZEDAuthenticationMethodIsReturned() { string expectedSDKValue = "UNRECOGNIZED"; AuthenticationMethod classUnderTest = AuthenticationMethod.valueOf("ThisAuthenticationMethodDoesNotExistINSDK"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingAuthenticationMethodWithAPIValueKBAThenKBAAuthenticationMethodIsReturned() { string expectedSDKValue = "KBA"; AuthenticationMethod classUnderTest = AuthenticationMethod.valueOf("KBA"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }