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

Commit a993660

Browse files
author
Meaghan Lewis
committed
Update assertions that use IsInstanceOf
1 parent 452b144 commit a993660

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void ShouldReturnShowCommentTagForRhs()
4545
var result = target.GetTags(span).ToList();
4646

4747
Assert.That(result, Has.One.Items);
48-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(ShowInlineCommentTag)));
48+
Assert.That(result[0].Tag, Is.InstanceOf<ShowInlineCommentTag>());
4949
}
5050

5151
[Test]
@@ -62,7 +62,7 @@ public void ShouldReturnAddNewCommentTagForAddedLineOnRhs()
6262
var result = target.GetTags(span).ToList();
6363

6464
Assert.That(result, Has.One.Items);
65-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(AddInlineCommentTag)));
65+
Assert.That(result[0].Tag, Is.InstanceOf<AddInlineCommentTag>());
6666
}
6767

6868
[Test]
@@ -95,7 +95,7 @@ public void ShouldReturnShowCommentTagForLhs()
9595
var result = target.GetTags(span).ToList();
9696

9797
Assert.That(result, Has.One.Items);
98-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(ShowInlineCommentTag)));
98+
Assert.That(result[0].Tag, Is.InstanceOf<ShowInlineCommentTag>());
9999
}
100100

101101
[Test]
@@ -112,7 +112,7 @@ public void ShouldReturnAddCommentTagForLhs()
112112
var result = target.GetTags(span).ToList();
113113

114114
Assert.That(result, Has.One.Items);
115-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(AddInlineCommentTag)));
115+
Assert.That(result[0].Tag, Is.InstanceOf<AddInlineCommentTag>());
116116
}
117117

118118
[Test]
@@ -222,7 +222,7 @@ public void ShouldReturnShowCommentTag()
222222
var result = target.GetTags(span).ToList();
223223

224224
Assert.That(result, Has.One.Items);
225-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(ShowInlineCommentTag)));
225+
Assert.That(result[0].Tag, Is.InstanceOf<ShowInlineCommentTag>());
226226
}
227227

228228
[Test]
@@ -239,7 +239,7 @@ public void ShouldReturnAddNewCommentTagForAddedLine()
239239
var result = target.GetTags(span).ToList();
240240

241241
Assert.That(result, Has.One.Items);
242-
Assert.That(result[0].Tag, Is.InstanceOf(typeof(AddInlineCommentTag)));
242+
Assert.That(result[0].Tag, Is.InstanceOf<AddInlineCommentTag>());
243243
}
244244

245245
[Test]

0 commit comments

Comments
 (0)