Skip to content

Commit 50b002a

Browse files
committed
add additional assertions
1 parent 39cd52f commit 50b002a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Flagsmith.EngineTest/EngineTestV2.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ public void TestGetEvaluationResult_ShouldNotMutateOriginalContextIdentity()
8989

9090
// Assert: The original context's Identity.Key should still be null
9191
Assert.Null(context.Identity.Key);
92+
93+
// ...and the rest of the context should remain unchanged
94+
Assert.Equal("test-env", context.Environment.Key);
95+
Assert.Equal("user-123", context.Identity.Identifier);
96+
Assert.Empty(context.Features);
97+
Assert.Empty(context.Segments);
9298
}
9399
}
94100
}

0 commit comments

Comments
 (0)