+void StringTestCase::StaticConstructors()
+{
+ WX_ASSERT_STR_EQUAL( "", wxString::FromAscii("") );
+ WX_ASSERT_STR_EQUAL( "", wxString::FromAscii("Hello", 0) );
+ WX_ASSERT_STR_EQUAL( "Hell", wxString::FromAscii("Hello", 4) );
+ WX_ASSERT_STR_EQUAL( "Hello", wxString::FromAscii("Hello", 5) );
+ WX_ASSERT_STR_EQUAL( "Hello", wxString::FromAscii("Hello") );
+
+ // FIXME: this doesn't work currently but should!
+ //WX_ASSERT_SIZET_EQUAL( 1, wxString::FromAscii("", 1).length() );
+
+
+ WX_ASSERT_STR_EQUAL( "", wxString::FromUTF8("") );
+ WX_ASSERT_STR_EQUAL( "", wxString::FromUTF8("Hello", 0) );
+ WX_ASSERT_STR_EQUAL( "Hell", wxString::FromUTF8("Hello", 4) );
+ WX_ASSERT_STR_EQUAL( "Hello", wxString::FromUTF8("Hello", 5) );
+ WX_ASSERT_STR_EQUAL( "Hello", wxString::FromUTF8("Hello") );
+
+ //WX_ASSERT_SIZET_EQUAL( 1, wxString::FromUTF8("", 1).length() );
+}