@@ -89,18 +89,16 @@ public void FindPercentComplete_KeyIsNull_ThrowsArgumentNullException()
8989        // Arrange 
9090
9191        // Act 
92+         string ?  percent  =  GetSiteMap ( ) . FindPercentComplete ( null ! ) ; 
9293
9394        // Assert 
94-         Assert . Throws < ArgumentNullException > ( ( )  => 
95-         { 
96-             GetSiteMap ( ) . FindPercentComplete ( null ! ) ; 
97-         } ) ; 
95+         Assert . Null ( percent ) ; 
9896    } 
9997
10098    [ Theory ] 
10199    [ InlineData ( "   " ) ] 
102100    [ InlineData ( "" ) ] 
103-     public  void  FindPercentComplete_KeyIsWhiteSpace_ThrowsArgumentException ( string  key ) 
101+     public  void  FindPercentComplete_KeyIsWhiteSpace_ThrowsArgumentException ( string ?  key ) 
104102    { 
105103        // Arrange 
106104
@@ -116,12 +114,12 @@ public void FindPercentComplete_KeyIsWhiteSpace_ThrowsArgumentException(string k
116114    [ Theory ] 
117115    [ InlineData ( "hello-world" ,  "50.00" ) ] 
118116    [ InlineData ( "c-syntax-fundamentals" ,  "100.00" ) ] 
119-     public  void  FindPercentComplete_ValidKey_Success ( string  key ,  string  result ) 
117+     public  void  FindPercentComplete_ValidKey_Success ( string ?  key ,  string  result ) 
120118    { 
121119        // Arrange 
122120
123121        // Act 
124-         string  percent  =  GetSiteMap ( ) . FindPercentComplete ( key ) ; 
122+         string ?  percent  =  GetSiteMap ( ) . FindPercentComplete ( key ) ; 
125123
126124        // Assert 
127125        Assert . Equal ( result ,  percent ) ; 
@@ -134,7 +132,7 @@ public void FindPercentComplete_EmptySiteMappings_ReturnsZeroPercent()
134132        IList < SiteMapping >  siteMappings  =  new  List < SiteMapping > ( ) ; 
135133
136134        // Act 
137-         string  percent  =  siteMappings . FindPercentComplete ( "test" ) ; 
135+         string ?  percent  =  siteMappings . FindPercentComplete ( "test" ) ; 
138136
139137        // Assert 
140138        Assert . Equal ( "0.00" ,  percent ) ; 
0 commit comments