@@ -305,30 +305,6 @@ public void BasicSerializeDeserializeNotification_MinimumParameters()
305
305
CheckNotificationsMatch ( original , deserializedData . Notification ) ;
306
306
}
307
307
308
- [ Test ]
309
- [ UnityPlatform ( RuntimePlatform . Android ) ]
310
- public void BasicSerializeDeserializeNotification_CanPutSimpleExtras ( )
311
- {
312
- const int notificationId = 125 ;
313
-
314
- var original = new AndroidNotification ( ) ;
315
- original . FireTime = DateTime . Now ;
316
-
317
- var builder = AndroidNotificationCenter . CreateNotificationBuilder ( notificationId , original , kChannelId ) ;
318
- var extras = builder . Call < AndroidJavaObject > ( "getExtras" ) ;
319
- extras . Call ( "putInt" , "testInt" , 5 ) ;
320
- extras . Call ( "putBoolean" , "testBool" , true ) ;
321
- extras . Call ( "putString" , "testString" , "the_test" ) ;
322
-
323
- var deserializedData = SerializeDeserializeNotification ( builder ) ;
324
-
325
- var deserializedExtras = deserializedData . NativeNotification . Get < AndroidJavaObject > ( "extras" ) ;
326
- Assert . IsNotNull ( deserializedExtras ) ;
327
- Assert . AreEqual ( 5 , deserializedExtras . Call < int > ( "getInt" , "testInt" ) ) ;
328
- Assert . AreEqual ( true , deserializedExtras . Call < bool > ( "getBoolean" , "testBool" ) ) ;
329
- Assert . AreEqual ( "the_test" , deserializedExtras . Call < string > ( "getString" , "testString" ) ) ;
330
- }
331
-
332
308
AndroidJavaObject CreateBitmap ( )
333
309
{
334
310
var configClass = new AndroidJavaClass ( "android.graphics.Bitmap$Config" ) ;
0 commit comments