public void GetTreatment_ShouldReturnControl_WithNullKey() { // Arrange _blockUntilReadyService .Setup(mock => mock.IsSdkReady()) .Returns(true); // Act var result = _splitClientForTesting.GetTreatment((string)null, string.Empty); // Assert Assert.AreEqual("control", result); }
public void GetTreatment_ShouldReturnControl_WithNullKey() { // Arrange _blockUntilReadyService .Setup(mock => mock.IsSdkReady()) .Returns(true); // Act var result = _splitClientForTesting.GetTreatment((string)null, string.Empty); // Assert Assert.AreEqual("control", result); _logMock.Verify(x => x.Error(It.IsAny <string>()), Times.Exactly(2)); }