]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/tmsgfmt.h
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / test / intltest / tmsgfmt.h
index 65308060220af2908077be633a2febeb755ae0a2..9d47c860b8380fc88a7edb19958f183d0674efb1 100644 (file)
@@ -1,10 +1,8 @@
-/***********************************************************************
+/********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2005, International Business Machines Corporation
- * and others. All Rights Reserved.
- ***********************************************************************/
-
-
+ * Copyright (c) 1997-2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
+ ********************************************************************/
 #ifndef _TESTMESSAGEFORMAT
 #define _TESTMESSAGEFORMAT
 
@@ -14,6 +12,7 @@
 
 #include "unicode/unistr.h"
 #include "unicode/fmtable.h"
+#include "unicode/msgfmt.h"
 #include "intltest.h"
 
 /**
@@ -61,6 +60,24 @@ public:
      **/
     void testMsgFormatPlural(/* char* par */);
 
+    /** 
+     * tests MessageFormat functionality with a SelectFormat.
+     **/
+    void testMsgFormatSelect(/* char* par */);
+
+    /** 
+     * Internal method to format a MessageFormat object with passed args 
+     **/
+    void internalFormat(MessageFormat* msgFmt ,
+        Formattable* args , int32_t numOfArgs ,
+        UnicodeString expected ,char* errMsg);
+
+    /** 
+     * Internal method to create a MessageFormat object with passed args 
+     **/
+    MessageFormat* internalCreate(
+        UnicodeString pattern ,Locale locale , UErrorCode& err, char* errMsg);
+
     /**
      * Verify that MessageFormat accomodates more than 10 arguments
      * and more than 10 subformats.
@@ -92,6 +109,9 @@ public:
     void TestTurkishCasing(void);
     void testAutoQuoteApostrophe(void);
 
+    /* Provide better code coverage */
+    void testCoverage(void);
+
 private:
 };