public void whenBuildingUsageReportCategoryWithAPIValueOPTED_OUTThenOPTED_OUTUsageReportCategoryIsReturned() { string expectedSDKValue = "OPTED_OUT"; OneSpanSign.Sdk.UsageReportCategory classUnderTest = OneSpanSign.Sdk.UsageReportCategory.valueOf("OPTED_OUT"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingUsageReportCategoryWithUnknownAPIValueThenUNRECOGNIZEDUsageReportCategoryIsReturned() { string expectedSDKValue = "UNRECOGNIZED"; OneSpanSign.Sdk.UsageReportCategory classUnderTest = OneSpanSign.Sdk.UsageReportCategory.valueOf("ThisUsageReportCategoryDoesNotExistINSDK"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }