public void ConvertSDKUnrecognizedPackageStatusToAPIUnknownValue() { apiPackageStatus1 = "NEWLY_ADDED_AUTHENTICATION_METHOD"; DocumentPackageStatus unrecognizedSDKDocumentPackageStatus = DocumentPackageStatus.valueOf(apiPackageStatus1); string acutalAPIPackageStatus = new PackageStatusConverter(unrecognizedSDKDocumentPackageStatus).ToAPIPackageStatus(); Assert.AreEqual(apiPackageStatus1, acutalAPIPackageStatus); }
public void whenBuildingDocumentPackageStatusWithAPIValueEXPIREDThenEXPIREDDocumentPackageStatusIsReturned() { string expectedSDKValue = "EXPIRED"; DocumentPackageStatus classUnderTest = DocumentPackageStatus.valueOf("EXPIRED"); string actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingDocumentPackageStatusWithUnknownAPIValueThenUNRECOGNIZEDDocumentPackageStatusIsReturned() { string expectedSDKValue = "UNRECOGNIZED"; DocumentPackageStatus classUnderTest = DocumentPackageStatus.valueOf("ThisDocumentPackageStatusDoesNotExistInSDK"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }