Skip to content

Commit 7169c95

Browse files
committed
Cleanup test
1 parent 70239d6 commit 7169c95

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/BitzArt.XDoc.Tests/MemberDocumentationTests.cs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ public class MemberDocumentationTests
2323
[Fact]
2424
public void GetInheritanceTarget_PropertyHasParent_ShouldReturnParentProperty()
2525
{
26-
var property = typeof(DemoClass).GetProperty(nameof(DemoClass.MyProperty));
27-
var xmlDocument = new XmlDocument();
28-
var textNode = xmlDocument.CreateTextNode("This is a test property.");
29-
3026
MemberDocumentation<PropertyInfo> memberDocumentation = new PropertyDocumentation(
3127
source: new XDoc(),
32-
property: property!,
33-
node: textNode);
28+
property: typeof(DemoClass).GetProperty(nameof(DemoClass.MyProperty))!,
29+
node: null);
3430

3531
var inheritanceTarget = memberDocumentation.GetInheritanceTarget();
3632

@@ -40,14 +36,10 @@ public void GetInheritanceTarget_PropertyHasParent_ShouldReturnParentProperty()
4036
[Fact]
4137
public void GetInheritanceTarget_PropertyHasNoParent_ShouldReturnNull()
4238
{
43-
var property = typeof(DemoClass).GetProperty(nameof(DemoClass.MyOtherProperty));
44-
var xmlDocument = new XmlDocument();
45-
var textNode = xmlDocument.CreateTextNode("This is a test property.");
46-
4739
MemberDocumentation<PropertyInfo> memberDocumentation = new PropertyDocumentation(
4840
source: new XDoc(),
49-
property: property!,
50-
node: textNode);
41+
property: typeof(DemoClass).GetProperty(nameof(DemoClass.MyOtherProperty))!,
42+
node: null);
5143

5244
var inheritanceTarget = memberDocumentation.GetInheritanceTarget();
5345

0 commit comments

Comments
 (0)