Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 5ba4d89

Browse files
Fixing tests
1 parent 6e9bcae commit 5ba4d89

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/GitHub.InlineReviews.UnitTests/Tags/InlineCommentTaggerTests.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,11 @@ static IPullRequestSessionFile CreateSessionFile(bool withComments = true, bool
501501

502502
if (withAnnotations)
503503
{
504-
var annotation1 = Substitute.For<InlineAnnotationModel>();
505-
annotation1.EndLine.Returns(11);
504+
var annotation1 = new InlineAnnotationModel(new CheckSuiteModel(), new CheckRunModel(), new CheckRunAnnotationModel(){EndLine = 11});
506505

507-
var annotation2 = Substitute.For<InlineAnnotationModel>();
508-
annotation2.EndLine.Returns(21);
506+
var annotation2 = new InlineAnnotationModel(new CheckSuiteModel(), new CheckRunModel(), new CheckRunAnnotationModel() { EndLine = 21 });
509507

510-
var annotation3 = Substitute.For<InlineAnnotationModel>();
511-
annotation3.EndLine.Returns(21);
508+
var annotation3 = new InlineAnnotationModel(new CheckSuiteModel(), new CheckRunModel(), new CheckRunAnnotationModel() { EndLine = 21 });
512509

513510
var annotations = new List<InlineAnnotationModel> { annotation1, annotation2, annotation3 };
514511

0 commit comments

Comments
 (0)