File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
src/FluentNHibernate.Testing Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 20
20
<ItemGroup >
21
21
<PackageReference Include =" Microsoft.Data.Sqlite" Version =" 2.1.0" />
22
22
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.3.2" />
23
- <PackageReference Include =" FakeItEasy" Version =" 4.9.2 " />
23
+ <PackageReference Include =" FakeItEasy" Version =" 7.3.1 " />
24
24
<PackageReference Include =" FluentAssertions" Version =" 4.19.4" />
25
25
<PackageReference Include =" NUnit" Version =" 3.13.3" />
26
26
<PackageReference Include =" NUnit3TestAdapter" Version =" 4.2.1" />
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ private class CatType
24
24
[ Test ]
25
25
public void Should_Not_Open_A_New_Transaction_If_One_Is_Passed ( )
26
26
{
27
-
28
27
var transaction = A . Fake < ITransaction > ( ) ;
29
28
A . CallTo ( ( ) => transaction . IsActive ) . Returns ( true ) ;
30
29
@@ -35,7 +34,7 @@ public void Should_Not_Open_A_New_Transaction_If_One_Is_Passed()
35
34
spec . VerifyTheMappings ( ) ;
36
35
37
36
A . CallTo ( ( ) => session . BeginTransaction ( ) ) . MustNotHaveHappened ( ) ;
38
- A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( Repeated . Exactly . Twice ) ;
37
+ A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( 2 , Times . Exactly ) ;
39
38
}
40
39
41
40
[ Test ]
@@ -52,7 +51,7 @@ public void Should_Open_A_New_Transaction_If_None_Is_Passed()
52
51
var spec = new PersistenceSpecification < Cat > ( session ) ;
53
52
spec . VerifyTheMappings ( ) ;
54
53
55
- A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( Repeated . Exactly . Twice ) ;
54
+ A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( 2 , Times . Exactly ) ;
56
55
}
57
56
58
57
[ Test ]
@@ -81,7 +80,7 @@ public void Passed_Transaction_Should_Apply_For_Reference_Saving()
81
80
82
81
spec . VerifyTheMappings ( ) ;
83
82
84
- A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( Repeated . Exactly . Twice ) ;
83
+ A . CallTo ( ( ) => session . Transaction ) . MustHaveHappened ( 2 , Times . Exactly ) ;
85
84
A . CallTo ( ( ) => session . BeginTransaction ( ) ) . MustNotHaveHappened ( ) ;
86
85
}
87
86
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ public override void because()
417
417
public void should_perform_the_check_with_the_custom_equality_comparer ( )
418
418
{
419
419
A . CallTo ( ( ) => sut . EntityEqualityComparer . Equals ( null , null ) )
420
- . WithAnyArguments ( ) . MustHaveHappened ( Repeated . Exactly . Times ( 3 ) ) ;
420
+ . WithAnyArguments ( ) . MustHaveHappened ( 3 , Times . Exactly ) ;
421
421
}
422
422
}
423
423
@@ -443,7 +443,7 @@ public void should_perform_the_check_with_the_custom_equality_comparer()
443
443
{
444
444
A . CallTo ( ( ) => sut . EntityEqualityComparer . Equals ( null , null ) )
445
445
. WithAnyArguments ( )
446
- . MustHaveHappened ( Repeated . Exactly . Once ) ;
446
+ . MustHaveHappened ( 1 , Times . Exactly ) ;
447
447
}
448
448
}
449
449
You can’t perform that action at this time.
0 commit comments