コード例 #1
0
        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);
        }
コード例 #2
0
        public void whenBuildingUsageReportCategoryWithUnknownAPIValueThenUNRECOGNIZEDUsageReportCategoryIsReturned()
        {
            string expectedSDKValue = "UNRECOGNIZED";


            OneSpanSign.Sdk.UsageReportCategory classUnderTest = OneSpanSign.Sdk.UsageReportCategory.valueOf("ThisUsageReportCategoryDoesNotExistINSDK");
            String actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }