Skip to content

Commit

Permalink
Adding more specs.
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
askpt committed Feb 2, 2024
1 parent c1ae332 commit c14361f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/OpenFeature.Tests/FlagMetadataTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void GetBool_Should_Return_Null_If_Key_Not_Found()
[Fact]
[Specification("1.4.14",
"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.")]
[Specification("1.4.14.1", "Condition: `Flag metadata` MUST be immutable.")]
public void GetBool_Should_Return_Value_If_Key_Found()
{
// Arrange
Expand Down Expand Up @@ -85,6 +86,7 @@ public void GetInt_Should_Return_Null_If_Key_Not_Found()
[Fact]
[Specification("1.4.14",
"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.")]
[Specification("1.4.14.1", "Condition: `Flag metadata` MUST be immutable.")]
public void GetInt_Should_Return_Value_If_Key_Found()
{
// Arrange
Expand Down Expand Up @@ -144,6 +146,7 @@ public void GetDouble_Should_Return_Null_If_Key_Not_Found()
[Fact]
[Specification("1.4.14",
"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.")]
[Specification("1.4.14.1", "Condition: `Flag metadata` MUST be immutable.")]
public void GetDouble_Should_Return_Value_If_Key_Found()
{
// Arrange
Expand Down Expand Up @@ -203,6 +206,7 @@ public void GetString_Should_Return_Null_If_Key_Not_Found()
[Fact]
[Specification("1.4.14",
"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.")]
[Specification("1.4.14.1", "Condition: `Flag metadata` MUST be immutable.")]
public void GetString_Should_Return_Value_If_Key_Found()
{
// Arrange
Expand Down

0 comments on commit c14361f

Please sign in to comment.