1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . ComponentModel ;
34using GitHub . InlineReviews . Services ;
45using GitHub . InlineReviews . ViewModels ;
@@ -21,7 +22,7 @@ public void CreatesReplyPlaceholder()
2122 {
2223 var target = new NewInlineCommentThreadViewModel (
2324 Substitute . For < ICommentService > ( ) ,
24- CreateSession ( ) , new InlineAnnotationViewModel [ 0 ] ,
25+ CreateSession ( ) , Array . Empty < InlineAnnotationViewModel > ( ) ,
2526 Substitute . For < IPullRequestSessionFile > ( ) ,
2627 10 ,
2728 false ) ;
@@ -37,7 +38,7 @@ public void NeedsPushTracksFileCommitSha()
3738 var file = CreateFile ( ) ;
3839 var target = new NewInlineCommentThreadViewModel (
3940 Substitute . For < ICommentService > ( ) ,
40- CreateSession ( ) , new InlineAnnotationViewModel [ 0 ] ,
41+ CreateSession ( ) , Array . Empty < InlineAnnotationViewModel > ( ) ,
4142 file ,
4243 10 ,
4344 false ) ;
@@ -62,7 +63,7 @@ public void PlaceholderCommitEnabledWhenCommentHasBodyAndPostCommentIsEnabled()
6263 var file = CreateFile ( ) ;
6364 var target = new NewInlineCommentThreadViewModel (
6465 Substitute . For < ICommentService > ( ) ,
65- CreateSession ( ) , new InlineAnnotationViewModel [ 0 ] ,
66+ CreateSession ( ) , Array . Empty < InlineAnnotationViewModel > ( ) ,
6667 file ,
6768 10 ,
6869 false ) ;
@@ -86,7 +87,7 @@ public void PostsCommentToCorrectAddedLine()
8687 var file = CreateFile ( ) ;
8788 var target = new NewInlineCommentThreadViewModel (
8889 Substitute . For < ICommentService > ( ) ,
89- session , new InlineAnnotationViewModel [ 0 ] ,
90+ session , Array . Empty < InlineAnnotationViewModel > ( ) ,
9091 file , 10 , false ) ;
9192
9293 target . Comments [ 0 ] . Body = "New Comment" ;
@@ -119,7 +120,7 @@ public void AddsCommentToCorrectDeletedLine()
119120
120121 var target = new NewInlineCommentThreadViewModel (
121122 Substitute . For < ICommentService > ( ) ,
122- session , new InlineAnnotationViewModel [ 0 ] ,
123+ session , Array . Empty < InlineAnnotationViewModel > ( ) ,
123124 file , 16 , true ) ;
124125
125126 target . Comments [ 0 ] . Body = "New Comment" ;
0 commit comments