You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: test/OpenFeature.Tests/OpenFeatureClientTests.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ public async Task OpenFeatureClient_Should_Allow_Details_Flag_Evaluation()
147
147
}
148
148
149
149
[Fact]
150
-
[Specification("1.1.2","The `API` MUST provide a function to set the global `provider` singleton, which accepts an API-conformant `provider` implementation.")]
150
+
[Specification("1.1.2","The `API` MUST provide a function to set the default `provider`, which accepts an API-conformant `provider` implementation.")]
151
151
[Specification("1.3.3","The `client` SHOULD guarantee the returned value of any typed flag evaluation method is of the expected type. If the value returned by the underlying provider implementation does not match the expected type, it's to be considered abnormal execution, and the supplied `default value` should be returned.")]
152
152
[Specification("1.4.7","In cases of abnormal execution, the `evaluation details` structure's `error code` field MUST contain an `error code`.")]
153
153
[Specification("1.4.8","In cases of abnormal execution (network failure, unhandled error, etc) the `reason` field in the `evaluation details` SHOULD indicate an error.")]
Copy file name to clipboardexpand all lines: test/OpenFeature.Tests/OpenFeatureTests.cs
+79-3
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,65 @@ public void OpenFeature_Should_Be_Singleton()
21
21
}
22
22
23
23
[Fact]
24
-
[Specification("1.1.3","The `API` MUST provide a function to add `hooks` which accepts one or more API-conformant `hooks`, and appends them to the collection of any previously added hooks. When new hooks are added, previously added hooks are not removed.")]
24
+
[Specification("1.1.3","The `API` MUST provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.")]
[Specification("1.1.3","The `API` MUST provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.")]
[Specification("1.1.3","The `API` MUST provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.")]
[Specification("1.1.3","The `API` MUST provide a function to bind a given `provider` to one or more client `name`s. If the client-name already has a bound provider, it is overwritten with the new mapping.")]
[Specification("1.1.4","The `API` MUST provide a function to add `hooks` which accepts one or more API-conformant `hooks`, and appends them to the collection of any previously added hooks. When new hooks are added, previously added hooks are not removed.")]
25
83
publicvoidOpenFeature_Should_Add_Hooks()
26
84
{
27
85
varopenFeature=Api.Instance;
@@ -50,7 +108,7 @@ public void OpenFeature_Should_Add_Hooks()
50
108
}
51
109
52
110
[Fact]
53
-
[Specification("1.1.4","The API MUST provide a function for retrieving the metadata field of the configured `provider`.")]
111
+
[Specification("1.1.5","The API MUST provide a function for retrieving the metadata field of the configured `provider`.")]
@@ -65,7 +123,7 @@ public void OpenFeature_Should_Get_Metadata()
65
123
[InlineData("client1","version1")]
66
124
[InlineData("client2",null)]
67
125
[InlineData(null,null)]
68
-
[Specification("1.1.5","The `API` MUST provide a function for creating a `client` which accepts the following options: - name (optional): A logical string identifier for the client.")]
126
+
[Specification("1.1.6","The `API` MUST provide a function for creating a `client` which accepts the following options: - name (optional): A logical string identifier for the client.")]
0 commit comments