File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ public void OptionalNoneGetValueOrDefaultShouldProduceExpectedResult()
336
336
337
337
// Then
338
338
Assert . Equal ( 0 , actualNumber ) ;
339
- Assert . Equal ( null , actualText ) ;
339
+ Assert . Null ( actualText ) ;
340
340
}
341
341
342
342
[ Fact ( DisplayName = "Optional Some.GetValueOrDefault with default value should produce the expected result." ) ]
Original file line number Diff line number Diff line change @@ -163,10 +163,10 @@ public void PersonSpecificationNotShouldReturnExpectedResult()
163
163
Specification < Person > specification = PersonSpecification . Or (
164
164
new PersonNameStartsWithSpecification ( "A" ) ,
165
165
new PersonHasLocationCitySpecification ( "Lisbon" )
166
- ) . Not ( ) ;
166
+ ) ;
167
167
168
168
// When
169
- IEnumerable < Person > result = Person . People . Where ( specification ) . ToList ( ) ;
169
+ IEnumerable < Person > result = Person . People . WhereNot ( specification ) . ToList ( ) ;
170
170
171
171
// Then
172
172
Assert . Single ( result ) ;
You can’t perform that action at this time.
0 commit comments