File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 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()
2929 var attrs = resource . GetOutputAttrs ( null ) ;
3030
3131 // assert
32- Assert . Single ( attrs ) ;
33- Assert . Equal ( nameof ( Model . Password ) , attrs [ 0 ] . InternalAttributeName ) ;
32+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
3433 }
3534
3635 [ Fact ]
@@ -43,7 +42,8 @@ public void Request_Filter_Uses_NewExpression()
4342 var attrs = resource . GetOutputAttrs ( null ) ;
4443
4544 // 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 ) ) ;
4747 }
4848
4949 [ Fact ]
@@ -57,8 +57,7 @@ public void Instance_Filter_Uses_Member_Expression()
5757 var attrs = resource . GetOutputAttrs ( model ) ;
5858
5959 // assert
60- Assert . Single ( attrs ) ;
61- Assert . Equal ( nameof ( Model . Password ) , attrs [ 0 ] . InternalAttributeName ) ;
60+ Assert . DoesNotContain ( attrs , a => a . InternalAttributeName == nameof ( Model . AlwaysExcluded ) ) ;
6261 }
6362
6463 [ Fact ]
@@ -72,7 +71,8 @@ public void Instance_Filter_Uses_NewExpression()
7271 var attrs = resource . GetOutputAttrs ( model ) ;
7372
7473 // 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 ) ) ;
7676 }
7777
7878 [ Fact ]
You can’t perform that action at this time.
0 commit comments