@@ -2008,8 +2008,8 @@ protected async Task GetInterruptedFunctionsReturnsOnlyInterruptedFunctions(Task
20082008 await store . Interrupt ( functionId1 ) . ShouldBeTrueAsync ( ) ;
20092009 await store . Interrupt ( functionId3 ) . ShouldBeTrueAsync ( ) ;
20102010
2011- // Get interrupted functions from the set of all 4 functions
2012- var interruptedFunctions = await store . GetInterruptedFunctions ( [ functionId1 , functionId2 , functionId3 , functionId4 ] ) ;
2011+ // Get interrupted functions
2012+ var interruptedFunctions = await store . GetInterruptedFunctions ( ) ;
20132013
20142014 // Should return only the 2 interrupted functions
20152015 interruptedFunctions . Count . ShouldBe ( 2 ) ;
@@ -2019,12 +2019,12 @@ protected async Task GetInterruptedFunctionsReturnsOnlyInterruptedFunctions(Task
20192019 interruptedFunctions . Any ( id => id == functionId4 ) . ShouldBeFalse ( ) ;
20202020 }
20212021
2022- public abstract Task GetInterruptedFunctionsReturnsEmptyListWhenNoIdsProvided ( ) ;
2023- protected async Task GetInterruptedFunctionsReturnsEmptyListWhenNoIdsProvided ( Task < IFunctionStore > storeTask )
2022+ public abstract Task GetInterruptedFunctionsReturnsEmptyListWhenNoneExist ( ) ;
2023+ protected async Task GetInterruptedFunctionsReturnsEmptyListWhenNoneExist ( Task < IFunctionStore > storeTask )
20242024 {
20252025 var store = await storeTask ;
20262026
2027- var interruptedFunctions = await store . GetInterruptedFunctions ( [ ] ) ;
2027+ var interruptedFunctions = await store . GetInterruptedFunctions ( ) ;
20282028 interruptedFunctions . Count . ShouldBe ( 0 ) ;
20292029 }
20302030
@@ -2060,7 +2060,7 @@ protected async Task GetInterruptedFunctionsReturnsEmptyListWhenNoneFunctionsAre
20602060 session . ShouldBeNull ( ) ;
20612061
20622062 // Don't interrupt any functions
2063- var interruptedFunctions = await store . GetInterruptedFunctions ( [ functionId1 , functionId2 ] ) ;
2063+ var interruptedFunctions = await store . GetInterruptedFunctions ( ) ;
20642064
20652065 interruptedFunctions . Count . ShouldBe ( 0 ) ;
20662066 }
@@ -2101,10 +2101,13 @@ protected async Task GetInterruptedFunctionsReturnsEmptyListWhenQueriedIdsDoNotE
21012101 await store . Interrupt ( functionId1 ) . ShouldBeTrueAsync ( ) ;
21022102 await store . Interrupt ( functionId2 ) . ShouldBeTrueAsync ( ) ;
21032103
2104- // Query for non-existent IDs
2105- var interruptedFunctions = await store . GetInterruptedFunctions ( [ nonExistentId1 , nonExistentId2 ] ) ;
2104+ // No functions are interrupted despite existing
2105+ var interruptedFunctions = await store . GetInterruptedFunctions ( ) ;
21062106
2107- interruptedFunctions . Count . ShouldBe ( 0 ) ;
2107+ // Should return the 2 interrupted functions
2108+ interruptedFunctions . Count . ShouldBe ( 2 ) ;
2109+ interruptedFunctions . Any ( id => id == functionId1 ) . ShouldBeTrue ( ) ;
2110+ interruptedFunctions . Any ( id => id == functionId2 ) . ShouldBeTrue ( ) ;
21082111 }
21092112
21102113 public abstract Task GetInterruptedFunctionsOnlyReturnsMatchingInterruptedFunctions ( ) ;
@@ -2171,15 +2174,15 @@ protected async Task GetInterruptedFunctionsOnlyReturnsMatchingInterruptedFuncti
21712174 await store . Interrupt ( functionId3 ) . ShouldBeTrueAsync ( ) ;
21722175 await store . Interrupt ( functionId4 ) . ShouldBeTrueAsync ( ) ;
21732176
2174- // Query for only functions 2 and 4
2175- var interruptedFunctions = await store . GetInterruptedFunctions ( [ functionId2 , functionId4 ] ) ;
2177+ // Get all interrupted functions
2178+ var interruptedFunctions = await store . GetInterruptedFunctions ( ) ;
21762179
2177- // Should return only the 2 queried interrupted functions
2178- interruptedFunctions . Count . ShouldBe ( 2 ) ;
2180+ // Should return all 4 interrupted functions
2181+ interruptedFunctions . Count . ShouldBe ( 4 ) ;
2182+ interruptedFunctions . Any ( id => id == functionId1 ) . ShouldBeTrue ( ) ;
21792183 interruptedFunctions . Any ( id => id == functionId2 ) . ShouldBeTrue ( ) ;
2184+ interruptedFunctions . Any ( id => id == functionId3 ) . ShouldBeTrue ( ) ;
21802185 interruptedFunctions . Any ( id => id == functionId4 ) . ShouldBeTrue ( ) ;
2181- interruptedFunctions . Any ( id => id == functionId1 ) . ShouldBeFalse ( ) ;
2182- interruptedFunctions . Any ( id => id == functionId3 ) . ShouldBeFalse ( ) ;
21832186 }
21842187
21852188 public abstract Task GetResultsReturnsResultsForExistingFunctions ( ) ;
0 commit comments