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/ImmutableMetadataTest.cs
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,28 @@ public void GetInt_Should_Return_Value_If_Key_Found()
100
100
Assert.NotNull(result);
101
101
Assert.Equal(1,result);
102
102
}
103
+
[Fact]
104
+
[Specification("1.4.14",
105
+
"If the `flag metadata` field in the `flag resolution` structure returned by the configured `provider` is set, the `evaluation details` structure's `flag metadata` field MUST contain that value. Otherwise, it MUST contain an empty record.")]
106
+
[Specification("1.4.14.1","Condition: `Flag metadata` MUST be immutable.")]
@@ -160,6 +182,29 @@ public void GetDouble_Should_Return_Value_If_Key_Found()
160
182
Assert.Equal(1.2,result);
161
183
}
162
184
185
+
[Fact]
186
+
[Specification("1.4.14",
187
+
"If the `flag metadata` field in the `flag resolution` structure returned by the configured `provider` is set, the `evaluation details` structure's `flag metadata` field MUST contain that value. Otherwise, it MUST contain an empty record.")]
188
+
[Specification("1.4.14.1","Condition: `Flag metadata` MUST be immutable.")]
"If the `flag metadata` field in the `flag resolution` structure returned by the configured `provider` is set, the `evaluation details` structure's `flag metadata` field MUST contain that value. Otherwise, it MUST contain an empty record.")]
0 commit comments