Skip to content

Commit 873317b

Browse files
Minor code fixes.
1 parent 05aaf21 commit 873317b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

OnixLabs.Core.UnitTests/OptionalTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public void OptionalNoneGetValueOrDefaultShouldProduceExpectedResult()
336336

337337
// Then
338338
Assert.Equal(0, actualNumber);
339-
Assert.Equal(null, actualText);
339+
Assert.Null(actualText);
340340
}
341341

342342
[Fact(DisplayName = "Optional Some.GetValueOrDefault with default value should produce the expected result.")]

OnixLabs.Core.UnitTests/SpecificationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ public void PersonSpecificationNotShouldReturnExpectedResult()
163163
Specification<Person> specification = PersonSpecification.Or(
164164
new PersonNameStartsWithSpecification("A"),
165165
new PersonHasLocationCitySpecification("Lisbon")
166-
).Not();
166+
);
167167

168168
// When
169-
IEnumerable<Person> result = Person.People.Where(specification).ToList();
169+
IEnumerable<Person> result = Person.People.WhereNot(specification).ToList();
170170

171171
// Then
172172
Assert.Single(result);

0 commit comments

Comments
 (0)