Skip to content

Commit

Permalink
Merge pull request #1659 from thomaslevesque/fix-dummy-specs
Browse files Browse the repository at this point in the history
Make wording consistent in DummyCreationSpecs and don't use A.Dummy directly
  • Loading branch information
blairconrad authored Oct 16, 2019
2 parents b5b6ba5 + 9532287 commit 06bb07d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/FakeItEasy.Specs/DummyCreationSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,11 @@ public void AvoidLongSelfReferentialConstructor(
"And the class has a two-parameter constructor using its own type"
.See(() => new ClassWithLongSelfReferentialConstructor(typeof(object), default));

"When I create a dummy of the class"
.x(() => dummy1 = A.Dummy<ClassWithLongSelfReferentialConstructor>());
"When a dummy of the class is requested"
.x(() => dummy1 = this.CreateDummy<ClassWithLongSelfReferentialConstructor>());

"And I create another dummy of the class"
.x(() => dummy2 = A.Dummy<ClassWithLongSelfReferentialConstructor>());
.x(() => dummy2 = this.CreateDummy<ClassWithLongSelfReferentialConstructor>());

"Then the first dummy is not null"
.x(() => dummy1.Should().NotBeNull());
Expand All @@ -442,8 +442,8 @@ public void TupleCreation(Tuple<Foo, string> dummy)
"And another type"
.See<string>();

"When I create a dummy value tuple of those types"
.x(() => dummy = A.Dummy<Tuple<Foo, string>>());
"When a dummy tuple of those types of these types is requested"
.x(() => dummy = this.CreateDummy<Tuple<Foo, string>>());

"Then the first item of the tuple is a dummy"
.x(() => dummy.Item1.Should().BeOfType<Foo>());
Expand All @@ -461,8 +461,8 @@ public void ValueTupleCreation((Foo foo, string s) dummy)
"And another type"
.See<string>();

"When I create a dummy value tuple of those types"
.x(() => dummy = A.Dummy<(Foo, string)>());
"When a dummy value tuple of those types is requested"
.x(() => dummy = this.CreateDummy<(Foo, string)>());

"Then the first item of the tuple is a dummy"
.x(() => dummy.foo.Should().BeOfType<Foo>());
Expand Down

0 comments on commit 06bb07d

Please sign in to comment.