@@ -47,28 +47,6 @@ public async Task Can_get_special_paths()
4747 Directory . Exists ( temp ) . Should ( ) . BeTrue ( ) ;
4848 }
4949
50-
51- [ Fact ( Timeout = 20000 ) ]
52- public async Task Badge_count_roundtrip_where_supported ( )
53- {
54- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) || RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
55- {
56- var ok = await Electron . App . SetBadgeCountAsync ( 3 ) ;
57- ok . Should ( ) . BeTrue ( ) ;
58- var count = await Electron . App . GetBadgeCountAsync ( ) ;
59- count . Should ( ) . Be ( 3 ) ;
60- // reset
61- await Electron . App . SetBadgeCountAsync ( 0 ) ;
62- }
63- else
64- {
65- // On Windows it's usually unsupported; ensure badge query works and returns a non-negative value
66- await Electron . App . SetBadgeCountAsync ( 0 ) ; // ignore return value
67- var count = await Electron . App . GetBadgeCountAsync ( ) ;
68- count . Should ( ) . BeGreaterOrEqualTo ( 0 ) ;
69- }
70- }
71-
7250 [ Fact ( Timeout = 20000 ) ]
7351 public async Task Can_get_app_metrics ( )
7452 {
@@ -133,7 +111,7 @@ public async Task BadgeCount_set_and_reset_where_supported()
133111 await Electron . App . SetBadgeCountAsync ( 2 ) ;
134112 var count = await Electron . App . GetBadgeCountAsync ( ) ;
135113 // Some platforms may always return0; just ensure call didn't throw and is non-negative
136- count . Should ( ) . BeGreaterOrEqualTo ( 0 ) ;
114+ count . Should ( ) . BeGreaterThanOrEqualTo ( 0 ) ;
137115 await Electron . App . SetBadgeCountAsync ( 0 ) ;
138116 }
139117
@@ -144,17 +122,6 @@ public async Task App_metrics_have_cpu_info()
144122 metrics [ 0 ] . Cpu . Should ( ) . NotBeNull ( ) ;
145123 }
146124
147- [ Fact ( Timeout = 20000 ) ]
148- public async Task App_badge_count_roundtrip ( )
149- {
150- // Set then get (non-mac platforms treat as no-op but should return0 or set value)
151- var success = await Electron . App . SetBadgeCountAsync ( 3 ) ;
152- success . Should ( ) . BeTrue ( ) ;
153- var count = await Electron . App . GetBadgeCountAsync ( ) ;
154- // Allow fallback to0 on platforms without badge support
155- ( count == 3 || count == 0 ) . Should ( ) . BeTrue ( ) ;
156- }
157-
158125 [ Fact ( Timeout = 20000 ) ]
159126 public async Task App_gpu_feature_status_has_some_fields ( )
160127 {
0 commit comments