Skip to content

Commit e25683f

Browse files
fix test
1 parent 2b8f76b commit e25683f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Machine.Specifications.Should.Specs/ShouldBeLikeSpecs.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ public class Dummy
414414
public int[] Prop1 { get; set; }
415415
}
416416

417-
Establish context = () => obj1 = new Dummy { Prop1 = new[] { 1, 1, 1 } };
417+
Establish context = () =>
418+
obj1 = new Dummy { Prop1 = new[] { 1, 1, 1 } };
418419

419420
class and_the_objects_are_similar
420421
{
@@ -466,7 +467,7 @@ class and_the_objects_are_different_and_have_null_values
466467
exception.ShouldBeOfExactType<SpecificationException>();
467468

468469
It should_contain_message = () =>
469-
exception.Message.ShouldEqual(
470+
exception.Message.Trim().ShouldEqual(
470471
"""
471472
"Prop1":
472473
Expected: [null]
@@ -476,7 +477,7 @@ class and_the_objects_are_different_and_have_null_values
476477
[1],
477478
[1]
478479
}
479-
""");
480+
""".Trim());
480481
}
481482

482483
class and_the_objects_are_different_and_the_actual_object_has_a_null_value

0 commit comments

Comments
 (0)