88
99namespace Microsoft . VisualStudio . Setup . Configuration ;
1010
11+ [ TestClass ]
1112public unsafe class SetupConfigurationTests
1213{
13- [ Fact ]
14+ [ TestMethod ]
1415 public void CanCreateSetupConfigurationFactory ( )
1516 {
1617 using ComClassFactory factory = new ( CLSID . SetupConfiguration ) ;
1718 }
1819
19- [ Fact ]
20+ [ TestMethod ]
2021 public void CanCreateISetupConfiguration2Instance ( )
2122 {
2223 using ComClassFactory factory = new ( CLSID . SetupConfiguration ) ;
2324 using var setupConfig = factory . CreateInstance < ISetupConfiguration2 > ( ) ;
24- Assert . False ( setupConfig . IsNull ) ;
25+ Assert . IsFalse ( setupConfig . IsNull ) ;
2526 }
2627
27- [ Fact ]
28+ [ TestMethod ]
2829 public void EnumInstances ( )
2930 {
3031 using ComClassFactory factory = new ( CLSID . SetupConfiguration ) ;
3132 using var setupConfig = factory . CreateInstance < ISetupConfiguration2 > ( ) ;
3233
3334 using ComScope < IEnumSetupInstances > enumInstances = default ;
3435 setupConfig . Pointer ->EnumInstances ( enumInstances ) . ThrowOnFailure ( ) ;
35- Assert . False ( enumInstances . IsNull ) ;
36+ Assert . IsFalse ( enumInstances . IsNull ) ;
3637
3738 using ComScope < ISetupInstance > setupInstance = default ;
3839 uint fetched ;
@@ -43,10 +44,10 @@ public void EnumInstances()
4344 using BSTR displayName = default ;
4445 setupInstance . Pointer ->GetDisplayName ( 0 , & displayName ) . ThrowOnFailure ( ) ;
4546 string name = displayName . ToString ( ) ;
46- Assert . NotEmpty ( name ) ;
47+ Assert . IsFalse ( string . IsNullOrEmpty ( name ) ) ;
4748 }
4849
49- [ Fact ]
50+ [ TestMethod ]
5051 public void SetupInstance2_PropertyStore ( )
5152 {
5253 using ComClassFactory factory = new ( CLSID . SetupConfiguration ) ;
@@ -67,9 +68,9 @@ public void SetupInstance2_PropertyStore()
6768 using SafeArrayScope < BSTR > namesArray = default ;
6869 properties . Pointer ->GetNames ( namesArray ) . ThrowOnFailure ( ) ;
6970
70- Assert . True ( namesArray . Length > 0 , "There are names." ) ;
71+ Assert . IsTrue ( namesArray . Length > 0 , "There are names." ) ;
7172 using BSTR name = namesArray [ 0 ] ;
72- Assert . False ( name . IsNull , "Name is not null" ) ;
73+ Assert . IsFalse ( name . IsNull , "Name is not null" ) ;
7374
7475 using VARIANT value = default ;
7576 properties . Pointer ->GetValue ( name . Value , & value ) . ThrowOnFailure ( ) ;
0 commit comments