@@ -51,7 +51,7 @@ public async Task Case003_Create()
5151#endif
5252 Assert . IsNotNull ( _secretService ) ;
5353 var service = await _secretService . CreateAsync ( "Nickvision.Desktop.Test2" ) ;
54- Assert . IsFalse ( service is null ) ;
54+ Assert . IsNotNull ( service ) ;
5555 Assert . IsFalse ( service . Empty ) ;
5656 }
5757
@@ -66,7 +66,7 @@ public void Case004_Create()
6666#endif
6767 Assert . IsNotNull ( _secretService ) ;
6868 var service = _secretService . Create ( "Nickvision.Desktop.Test3" ) ;
69- Assert . IsFalse ( service is null ) ;
69+ Assert . IsNotNull ( service ) ;
7070 Assert . IsFalse ( service . Empty ) ;
7171 }
7272
@@ -82,7 +82,7 @@ public async Task Case005_Get()
8282 Assert . IsNotNull ( _secretService ) ;
8383 Assert . IsTrue ( await _secretService . AddAsync ( new Secret ( "Nickvision.Desktop.Test4" , "abc" ) ) ) ;
8484 var secret = _secretService . Get ( "Nickvision.Desktop.Test4" ) ;
85- Assert . IsFalse ( secret is null ) ;
85+ Assert . IsNotNull ( secret ) ;
8686 Assert . IsFalse ( secret . Empty ) ;
8787 Assert . AreEqual ( "abc" , secret . Value ) ;
8888 }
@@ -98,10 +98,10 @@ public async Task Case006_Get()
9898#endif
9999 Assert . IsNotNull ( _secretService ) ;
100100 var secret = await _secretService . CreateAsync ( "Nickvision.Desktop.Test5" ) ;
101- Assert . IsFalse ( secret is null ) ;
101+ Assert . IsNotNull ( secret ) ;
102102 Assert . IsFalse ( secret . Empty ) ;
103103 var secretFromGet = await _secretService . GetAsync ( "Nickvision.Desktop.Test5" ) ;
104- Assert . IsFalse ( secretFromGet is null ) ;
104+ Assert . IsNotNull ( secretFromGet ) ;
105105 Assert . IsFalse ( secretFromGet . Empty ) ;
106106 Assert . AreEqual ( secret . Value , secretFromGet . Value ) ;
107107 }
@@ -118,12 +118,12 @@ public async Task Case007_Update()
118118 Assert . IsNotNull ( _secretService ) ;
119119 Assert . IsTrue ( _secretService . Add ( new Secret ( "Nickvision.Desktop.Test6" , "abc123" ) ) ) ;
120120 var secret = await _secretService . GetAsync ( "Nickvision.Desktop.Test6" ) ;
121- Assert . IsFalse ( secret is null ) ;
121+ Assert . IsNotNull ( secret ) ;
122122 Assert . IsFalse ( secret . Empty ) ;
123123 Assert . AreEqual ( "abc123" , secret . Value ) ;
124124 Assert . IsTrue ( await _secretService . UpdateAsync ( new Secret ( "Nickvision.Desktop.Test6" , "abc!" ) ) ) ;
125125 secret = _secretService . Get ( "Nickvision.Desktop.Test6" ) ;
126- Assert . IsFalse ( secret is null ) ;
126+ Assert . IsNotNull ( secret ) ;
127127 Assert . IsFalse ( secret . Empty ) ;
128128 Assert . AreEqual ( "abc!" , secret . Value ) ;
129129 }
@@ -140,12 +140,12 @@ public async Task Case008_Update()
140140 Assert . IsNotNull ( _secretService ) ;
141141 Assert . IsTrue ( await _secretService . AddAsync ( new Secret ( "Nickvision.Desktop.Test7" , "abc123" ) ) ) ;
142142 var secret = _secretService . Get ( "Nickvision.Desktop.Test7" ) ;
143- Assert . IsFalse ( secret is null ) ;
143+ Assert . IsNotNull ( secret ) ;
144144 Assert . IsFalse ( secret . Empty ) ;
145145 Assert . AreEqual ( "abc123" , secret . Value ) ;
146146 Assert . IsTrue ( _secretService . Update ( new Secret ( "Nickvision.Desktop.Test7" , "abc!" ) ) ) ;
147147 secret = await _secretService . GetAsync ( "Nickvision.Desktop.Test7" ) ;
148- Assert . IsFalse ( secret is null ) ;
148+ Assert . IsNotNull ( secret ) ;
149149 Assert . IsFalse ( secret . Empty ) ;
150150 Assert . AreEqual ( "abc!" , secret . Value ) ;
151151 }
0 commit comments