@@ -45,7 +45,7 @@ final class MultiProviderTests: XCTestCase {
4545 XCTAssertEqual ( objectResult. value, mockProviderObjectValue)
4646 }
4747
48- func testEvaluationWithMultipleProvidersAndFirstMatchStrategy_FirstProviderHasFlag ( ) throws {
48+ func testEvaluationWithMultipleProvidersAndFirstFoundStrategy_FirstProviderHasFlag ( ) throws {
4949 let mockKey = " test-key "
5050 let mockProvider1Value = true
5151 let mockProvider1 = MockProvider (
@@ -58,15 +58,15 @@ final class MultiProviderTests: XCTestCase {
5858 )
5959 let multiProvider = MultiProvider (
6060 providers: [ mockProvider1, mockProvider2] ,
61- strategy: FirstMatchStrategy ( )
61+ strategy: FirstFoundStrategy ( )
6262 )
6363
6464 let boolResult = try multiProvider. getBooleanEvaluation (
6565 key: mockKey, defaultValue: false , context: MutableContext ( ) )
6666 XCTAssertEqual ( boolResult. value, mockProvider1Value)
6767 }
6868
69- func testEvaluationWithMultipleProvidersAndFirstMatchStrategy_FlagNotFound ( ) throws {
69+ func testEvaluationWithMultipleProvidersAndFirstFoundStrategy_FlagNotFound ( ) throws {
7070 let mockKey = " test-key "
7171 let mockProviderValue = true
7272 let mockProvider1 = MockProvider (
@@ -87,15 +87,15 @@ final class MultiProviderTests: XCTestCase {
8787 )
8888 let multiProvider = MultiProvider (
8989 providers: [ mockProvider1, mockProvider2] ,
90- strategy: FirstMatchStrategy ( )
90+ strategy: FirstFoundStrategy ( )
9191 )
9292
9393 let boolResult = try multiProvider. getBooleanEvaluation (
9494 key: mockKey, defaultValue: false , context: MutableContext ( ) )
9595 XCTAssertEqual ( boolResult. value, mockProviderValue)
9696 }
9797
98- func testEvaluationWithMultipleProvidersAndFirstMatchStrategy_AllProvidersMissingFlag ( ) throws {
98+ func testEvaluationWithMultipleProvidersAndFirstFoundStrategy_AllProvidersMissingFlag ( ) throws {
9999 let mockKey = " test-key "
100100 let mockProvider1 = MockProvider (
101101 initialize: { _ in } ,
@@ -109,7 +109,7 @@ final class MultiProviderTests: XCTestCase {
109109 )
110110 let multiProvider = MultiProvider (
111111 providers: [ mockProvider1, mockProvider2] ,
112- strategy: FirstMatchStrategy ( )
112+ strategy: FirstFoundStrategy ( )
113113 )
114114
115115 let result = try multiProvider. getBooleanEvaluation (
@@ -120,7 +120,7 @@ final class MultiProviderTests: XCTestCase {
120120 XCTAssertTrue ( result. errorCode == . flagNotFound)
121121 }
122122
123- func testEvaluationWithMultipleProvidersAndFirstMatchStrategy_HandlesOpenFeatureError ( ) throws {
123+ func testEvaluationWithMultipleProvidersAndFirstFoundStrategy_HandlesOpenFeatureError ( ) throws {
124124 let mockKey = " test-key "
125125 let mockProvider1 = MockProvider (
126126 initialize: { _ in } ,
@@ -136,7 +136,7 @@ final class MultiProviderTests: XCTestCase {
136136 )
137137 let multiProvider = MultiProvider (
138138 providers: [ mockProvider1, mockProvider2] ,
139- strategy: FirstMatchStrategy ( )
139+ strategy: FirstFoundStrategy ( )
140140 )
141141 let defaultValue = false
142142 let result = try multiProvider. getBooleanEvaluation (
@@ -145,7 +145,7 @@ final class MultiProviderTests: XCTestCase {
145145 XCTAssertNotNil ( result. errorCode)
146146 }
147147
148- func testEvaluationWithMultipleProvidersAndFirstMatchStrategy_Throws ( ) throws {
148+ func testEvaluationWithMultipleProvidersAndFirstFoundStrategy_Throws ( ) throws {
149149 let mockKey = " test-key "
150150 let mockError = MockProvider . MockProviderError. message ( " test non-open feature error " )
151151 let mockProvider1 = MockProvider (
@@ -162,7 +162,7 @@ final class MultiProviderTests: XCTestCase {
162162 )
163163 let multiProvider = MultiProvider (
164164 providers: [ mockProvider1, mockProvider2] ,
165- strategy: FirstMatchStrategy ( )
165+ strategy: FirstFoundStrategy ( )
166166 )
167167 let defaultValue = false
168168 do {
0 commit comments