Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcoltheart committed Dec 20, 2024
1 parent 0b9acd3 commit 2b8f76b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private SyntaxNode HandleDeclaration(MemberDeclarationSyntax declaration)
.WithLeadingTrivia(trivia);
}

private SyntaxNode GetParentDeclaration(SyntaxNode declaration)
private SyntaxNode? GetParentDeclaration(SyntaxNode? declaration)
{
while (declaration != null)
{
Expand Down
18 changes: 10 additions & 8 deletions src/Machine.Specifications.Should.Specs/ShouldBeLikeSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,16 @@ class and_the_objects_are_different_and_have_null_values

It should_contain_message = () =>
exception.Message.ShouldEqual(
@"""Prop1"":" + Environment.NewLine +
@" Expected: [null]" + Environment.NewLine +
@" But was: System.Int32[]:" + Environment.NewLine +
@"{" + Environment.NewLine +
@" [1]," + Environment.NewLine +
@" [1]," + Environment.NewLine +
@" [1]" + Environment.NewLine +
@"}");
"""
"Prop1":
Expected: [null]
But was: System.Int32[]:
{
[1],
[1],
[1]
}
""");
}

class and_the_objects_are_different_and_the_actual_object_has_a_null_value
Expand Down

0 comments on commit 2b8f76b

Please sign in to comment.