File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ public void Request_Filter_Uses_Member_Expression()
29
29
var attrs = resource . GetOutputAttrs ( null ) ;
30
30
31
31
// assert
32
- Assert . Single ( attrs ) ;
33
- Assert . Equal ( nameof ( Model . Password ) , attrs [ 0 ] . InternalAttributeName ) ;
32
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
34
33
}
35
34
36
35
[ Fact ]
@@ -43,7 +42,8 @@ public void Request_Filter_Uses_NewExpression()
43
42
var attrs = resource . GetOutputAttrs ( null ) ;
44
43
45
44
// assert
46
- Assert . Empty ( attrs ) ;
45
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
46
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . Password ) ) ;
47
47
}
48
48
49
49
[ Fact ]
@@ -57,8 +57,7 @@ public void Instance_Filter_Uses_Member_Expression()
57
57
var attrs = resource . GetOutputAttrs ( model ) ;
58
58
59
59
// assert
60
- Assert . Single ( attrs ) ;
61
- Assert . Equal ( nameof ( Model . Password ) , attrs [ 0 ] . InternalAttributeName ) ;
60
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
62
61
}
63
62
64
63
[ Fact ]
@@ -72,7 +71,8 @@ public void Instance_Filter_Uses_NewExpression()
72
71
var attrs = resource . GetOutputAttrs ( model ) ;
73
72
74
73
// assert
75
- Assert . Empty ( attrs ) ;
74
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
75
+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . Password ) ) ;
76
76
}
77
77
78
78
[ Fact ]
You can’t perform that action at this time.
0 commit comments