@@ -28,7 +28,7 @@ public void TestApiBuilderForCorrectParentApiList()
2828
2929 var result = _apiBuilder . Build ( context ) ;
3030
31- Assert . IsNotNull ( result ) ;
31+ Assert . That ( result , Is . Not . Null ) ;
3232
3333 Assert . That ( result . ApiNestingDepth == 0 ) ;
3434 Assert . That ( result . Apis . Count , Is . EqualTo ( 1 ) ) ;
@@ -45,7 +45,7 @@ public void TestApiBuilderForCorrectParentApiListWithOneChildren()
4545
4646 var result = _apiBuilder . Build ( context ) ;
4747
48- Assert . IsNotNull ( result ) ;
48+ Assert . That ( result , Is . Not . Null ) ;
4949
5050 Assert . That ( result . ApiNestingDepth == 0 ) ;
5151 Assert . That ( result . Apis . Count , Is . EqualTo ( 1 ) ) ;
@@ -65,7 +65,7 @@ public void TestApiBuilderForCorrectParentApiListWithTwoChildren()
6565
6666 var result = _apiBuilder . Build ( context ) ;
6767
68- Assert . IsNotNull ( result ) ;
68+ Assert . That ( result , Is . Not . Null ) ;
6969
7070 Assert . That ( result . ApiNestingDepth == 0 ) ;
7171 Assert . That ( result . Apis . Count , Is . EqualTo ( 1 ) ) ;
@@ -77,8 +77,8 @@ public void TestApiBuilderForCorrectParentApiListWithTwoChildren()
7777 var communicationApi = parentApi . Children . FirstOrDefault ( x => x . GetType ( ) == typeof ( CommunicationApi ) ) ;
7878 var ordersApi = parentApi . Children . FirstOrDefault ( x => x . GetType ( ) == typeof ( OrdersApi ) ) ;
7979
80- Assert . IsNotNull ( communicationApi ) ;
81- Assert . IsNotNull ( ordersApi ) ;
80+ Assert . That ( communicationApi , Is . Not . Null ) ;
81+ Assert . That ( ordersApi , Is . Not . Null ) ;
8282
8383 Assert . That ( ordersApi . Children . Count , Is . EqualTo ( 0 ) ) ;
8484 }
@@ -90,7 +90,7 @@ public void TestApiBuilderForCorrectParentApiListWithTwoChildrenAndOneChildFurth
9090
9191 var result = _apiBuilder . Build ( context ) ;
9292
93- Assert . IsNotNull ( result ) ;
93+ Assert . That ( result , Is . Not . Null ) ;
9494
9595 Assert . That ( result . ApiNestingDepth == 0 ) ;
9696 Assert . That ( result . Apis . Count , Is . EqualTo ( 1 ) ) ;
@@ -102,14 +102,14 @@ public void TestApiBuilderForCorrectParentApiListWithTwoChildrenAndOneChildFurth
102102 var communicationApi = parentApi . Children . FirstOrDefault ( x => x . GetType ( ) == typeof ( CommunicationApi ) ) ;
103103 var ordersApi = parentApi . Children . FirstOrDefault ( x => x . GetType ( ) == typeof ( OrdersApi ) ) ;
104104
105- Assert . IsNotNull ( communicationApi ) ;
106- Assert . IsNotNull ( ordersApi ) ;
105+ Assert . That ( communicationApi , Is . Not . Null ) ;
106+ Assert . That ( ordersApi , Is . Not . Null ) ;
107107
108108 // nested child query for order item in order query children as order items are included in paths
109109 Assert . That ( ordersApi . Children . Count , Is . EqualTo ( 1 ) ) ;
110110
111111 var orderItemsApi = ordersApi . Children . FirstOrDefault ( x => x . GetType ( ) == typeof ( OrderItemsApi ) ) ;
112- Assert . IsNotNull ( orderItemsApi ) ;
112+ Assert . That ( orderItemsApi , Is . Not . Null ) ;
113113 }
114114 }
115115}
0 commit comments