File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,10 @@ public class MemberDocumentationTests
23
23
[ Fact ]
24
24
public void GetInheritanceTarget_PropertyHasParent_ShouldReturnParentProperty ( )
25
25
{
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
-
30
26
MemberDocumentation < PropertyInfo > memberDocumentation = new PropertyDocumentation (
31
27
source : new XDoc ( ) ,
32
- property : property ! ,
33
- node : textNode ) ;
28
+ property : typeof ( DemoClass ) . GetProperty ( nameof ( DemoClass . MyProperty ) ) ! ,
29
+ node : null ) ;
34
30
35
31
var inheritanceTarget = memberDocumentation . GetInheritanceTarget ( ) ;
36
32
@@ -40,14 +36,10 @@ public void GetInheritanceTarget_PropertyHasParent_ShouldReturnParentProperty()
40
36
[ Fact ]
41
37
public void GetInheritanceTarget_PropertyHasNoParent_ShouldReturnNull ( )
42
38
{
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
-
47
39
MemberDocumentation < PropertyInfo > memberDocumentation = new PropertyDocumentation (
48
40
source : new XDoc ( ) ,
49
- property : property ! ,
50
- node : textNode ) ;
41
+ property : typeof ( DemoClass ) . GetProperty ( nameof ( DemoClass . MyOtherProperty ) ) ! ,
42
+ node : null ) ;
51
43
52
44
var inheritanceTarget = memberDocumentation . GetInheritanceTarget ( ) ;
53
45
You can’t perform that action at this time.
0 commit comments