@@ -16,21 +16,25 @@ public sealed class SystemSecretServiceTests
1616 [ TestMethod ]
1717 public void Case001_Initialize ( )
1818 {
19+ #if OS_LINUX
1920 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
2021 {
2122 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
2223 }
24+ #endif
2325 _secretService = new SystemSecretService ( ) ;
2426 Assert . IsNotNull ( _secretService ) ;
2527 }
2628
2729 [ TestMethod ]
2830 public async Task Case002_Add ( )
2931 {
32+ #if OS_LINUX
3033 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
3134 {
3235 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
3336 }
37+ #endif
3438 Assert . IsNotNull ( _secretService ) ;
3539 var secret = new Secret ( "Nickvision.Desktop.Test" , "abc" ) ;
3640 Assert . IsTrue ( await _secretService . AddAsync ( secret ) ) ;
@@ -40,10 +44,12 @@ public async Task Case002_Add()
4044 [ TestMethod ]
4145 public async Task Case003_Create ( )
4246 {
47+ #if OS_LINUX
4348 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
4449 {
4550 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
4651 }
52+ #endif
4753 Assert . IsNotNull ( _secretService ) ;
4854 var service = await _secretService . CreateAsync ( "Nickvision.Desktop.Test2" ) ;
4955 Assert . IsFalse ( service is null ) ;
@@ -53,10 +59,12 @@ public async Task Case003_Create()
5359 [ TestMethod ]
5460 public void Case004_Create ( )
5561 {
62+ #if OS_LINUX
5663 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
5764 {
5865 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
5966 }
67+ #endif
6068 Assert . IsNotNull ( _secretService ) ;
6169 var service = _secretService . Create ( "Nickvision.Desktop.Test3" ) ;
6270 Assert . IsFalse ( service is null ) ;
@@ -66,10 +74,12 @@ public void Case004_Create()
6674 [ TestMethod ]
6775 public async Task Case005_Get ( )
6876 {
77+ #if OS_LINUX
6978 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
7079 {
7180 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
7281 }
82+ #endif
7383 Assert . IsNotNull ( _secretService ) ;
7484 Assert . IsTrue ( await _secretService . AddAsync ( new Secret ( "Nickvision.Desktop.Test4" , "abc" ) ) ) ;
7585 var secret = _secretService . Get ( "Nickvision.Desktop.Test4" ) ;
@@ -81,10 +91,12 @@ public async Task Case005_Get()
8191 [ TestMethod ]
8292 public async Task Case006_Get ( )
8393 {
94+ #if OS_LINUX
8495 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
8596 {
8697 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
8798 }
99+ #endif
88100 Assert . IsNotNull ( _secretService ) ;
89101 var secret = await _secretService . CreateAsync ( "Nickvision.Desktop.Test5" ) ;
90102 Assert . IsFalse ( secret is null ) ;
@@ -98,10 +110,12 @@ public async Task Case006_Get()
98110 [ TestMethod ]
99111 public async Task Case007_Update ( )
100112 {
113+ #if OS_LINUX
101114 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
102115 {
103116 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
104117 }
118+ #endif
105119 Assert . IsNotNull ( _secretService ) ;
106120 Assert . IsTrue ( _secretService . Add ( new Secret ( "Nickvision.Desktop.Test6" , "abc123" ) ) ) ;
107121 var secret = await _secretService . GetAsync ( "Nickvision.Desktop.Test6" ) ;
@@ -118,10 +132,12 @@ public async Task Case007_Update()
118132 [ TestMethod ]
119133 public async Task Case008_Update ( )
120134 {
135+ #if OS_LINUX
121136 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
122137 {
123138 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
124139 }
140+ #endif
125141 Assert . IsNotNull ( _secretService ) ;
126142 Assert . IsTrue ( await _secretService . AddAsync ( new Secret ( "Nickvision.Desktop.Test7" , "abc123" ) ) ) ;
127143 var secret = _secretService . Get ( "Nickvision.Desktop.Test7" ) ;
@@ -138,10 +154,12 @@ public async Task Case008_Update()
138154 [ TestMethod ]
139155 public async Task Case009_Delete ( )
140156 {
157+ #if OS_LINUX
141158 if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" )
142159 {
143160 Assert . Inconclusive ( "Dialogs are not supported in CI environments" ) ;
144161 }
162+ #endif
145163 Assert . IsNotNull ( _secretService ) ;
146164 foreach ( var cred in new [ ]
147165 {
0 commit comments