Skip to content

Commit cef0bbd

Browse files
whitespace fix
1 parent 5e10b14 commit cef0bbd

File tree

1 file changed

+22
-45
lines changed

1 file changed

+22
-45
lines changed

OptimizelySDK.Tests/OptimizelyTest.cs

Lines changed: 22 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,8 +2385,7 @@ public void
23852385
Assert.AreEqual(expectedValue, variableValue);
23862386

23872387
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2388-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
2389-
}"" of feature flag ""{featureKey}""."));
2388+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
23902389
}
23912390

23922391
[Test]
@@ -2430,8 +2429,7 @@ public void
24302429
Assert.AreEqual(expectedValue, variableValue);
24312430

24322431
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2433-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
2434-
}"" of feature flag ""{featureKey}""."));
2432+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
24352433
}
24362434

24372435
[Test]
@@ -2463,8 +2461,7 @@ public void
24632461
Assert.AreEqual(expectedValue, variableValue);
24642462

24652463
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2466-
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId
2467-
}. Returning the default variable value ""{variableValue}""."));
2464+
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId}. Returning the default variable value ""{variableValue}""."));
24682465
}
24692466

24702467
[Test]
@@ -2508,8 +2505,7 @@ public void
25082505
Assert.AreEqual(expectedValue, variableValue);
25092506

25102507
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2511-
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId
2512-
}. Returning the default variable value ""{variableValue}""."));
2508+
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId}. Returning the default variable value ""{variableValue}""."));
25132509
}
25142510

25152511
[Test]
@@ -2539,8 +2535,7 @@ public void
25392535
Assert.AreEqual(expectedValue, variableValue);
25402536

25412537
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2542-
$@"Got variable value ""true"" for variable ""{variableKey}"" of feature flag ""{
2543-
featureKey}""."));
2538+
$@"Got variable value ""true"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
25442539
}
25452540

25462541
[Test]
@@ -2586,8 +2581,7 @@ public void
25862581
Assert.AreEqual(expectedStringValue, variableValue.GetValue<string>("string_var"));
25872582

25882583
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2589-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
2590-
}"" of feature flag ""{featureKey}""."));
2584+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
25912585
}
25922586

25932587
[Test]
@@ -2633,8 +2627,7 @@ public void
26332627
Assert.AreEqual(expectedStringValue, variableValue.GetValue<string>("string_var"));
26342628

26352629
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2636-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
2637-
}"" of feature flag ""{featureKey}""."));
2630+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
26382631
}
26392632

26402633
[Test]
@@ -2678,8 +2671,7 @@ public void
26782671
Assert.AreEqual(expectedValue, variableValue);
26792672

26802673
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2681-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
2682-
}"" of feature flag ""{featureKey}""."));
2674+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
26832675
}
26842676

26852677
[Test]
@@ -2708,8 +2700,7 @@ public void
27082700
variableKey, TestUserId, null);
27092701
Assert.AreEqual(expectedValue, variableValue);
27102702
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2711-
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId
2712-
}. Returning the default variable value ""true""."));
2703+
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId}. Returning the default variable value ""true""."));
27132704
}
27142705

27152706
[Test]
@@ -2752,8 +2743,7 @@ public void
27522743
Assert.AreEqual(expectedValue, variableValue);
27532744

27542745
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2755-
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId
2756-
}. Returning the default variable value ""{variableValue}""."));
2746+
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId}. Returning the default variable value ""{variableValue}""."));
27572747
}
27582748

27592749
[Test]
@@ -2782,8 +2772,7 @@ public void
27822772
Assert.AreEqual(expectedValue, variableValue);
27832773

27842774
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2785-
$@"User ""{TestUserId}"" is not in any variation for feature flag ""{featureKey
2786-
}"", returning default value ""{variableValue}""."));
2775+
$@"User ""{TestUserId}"" is not in any variation for feature flag ""{featureKey}"", returning default value ""{variableValue}""."));
27872776
}
27882777

27892778
#endregion Feature Toggle Tests
@@ -2846,8 +2835,7 @@ public void TestGetFeatureVariableValueForTypeGivenFeatureKeyOrVariableKeyNotFou
28462835
LoggerMock.Verify(l =>
28472836
l.Log(LogLevel.ERROR, $@"Feature key ""{featureKey}"" is not in datafile."));
28482837
LoggerMock.Verify(l => l.Log(LogLevel.ERROR,
2849-
$@"No feature variable was found for key ""{variableKey
2850-
}"" in feature flag ""double_single_variable_feature""."));
2838+
$@"No feature variable was found for key ""{variableKey}"" in feature flag ""double_single_variable_feature""."));
28512839
}
28522840

28532841
// Should return null and log error message when variable type is invalid.
@@ -2875,17 +2863,13 @@ public void TestGetFeatureVariableValueForTypeGivenInvalidVariableType()
28752863
"string_single_variable_feature", "json_var", TestUserId, null, variableTypeInt));
28762864

28772865
LoggerMock.Verify(l => l.Log(LogLevel.ERROR,
2878-
$@"Variable is of type ""double"", but you requested it as type ""{variableTypeBool
2879-
}""."));
2866+
$@"Variable is of type ""double"", but you requested it as type ""{variableTypeBool}""."));
28802867
LoggerMock.Verify(l => l.Log(LogLevel.ERROR,
2881-
$@"Variable is of type ""boolean"", but you requested it as type ""{
2882-
variableTypeDouble}""."));
2868+
$@"Variable is of type ""boolean"", but you requested it as type ""{variableTypeDouble}""."));
28832869
LoggerMock.Verify(l => l.Log(LogLevel.ERROR,
2884-
$@"Variable is of type ""integer"", but you requested it as type ""{
2885-
variableTypeString}""."));
2870+
$@"Variable is of type ""integer"", but you requested it as type ""{variableTypeString}""."));
28862871
LoggerMock.Verify(l => l.Log(LogLevel.ERROR,
2887-
$@"Variable is of type ""string"", but you requested it as type ""{variableTypeInt
2888-
}""."));
2872+
$@"Variable is of type ""string"", but you requested it as type ""{variableTypeInt}""."));
28892873
}
28902874

28912875
[Test]
@@ -2937,8 +2921,7 @@ public void TestGetFeatureVariableValueForTypeGivenFeatureFlagIsNotEnabledForUse
29372921
Assert.AreEqual(expectedValue, variableValue);
29382922

29392923
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2940-
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId
2941-
}. Returning the default variable value ""{variableValue}""."));
2924+
$@"Feature ""{featureKey}"" is not enabled for user {TestUserId}. Returning the default variable value ""{variableValue}""."));
29422925
}
29432926

29442927
// Should return default value and log message when feature is enabled for the user
@@ -2978,9 +2961,7 @@ public void
29782961
Assert.AreEqual(expectedValue, variableValue);
29792962

29802963
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
2981-
$@"Variable ""{variableKey
2982-
}"" is not used in variation ""control"", returning default value ""{expectedValue
2983-
}""."));
2964+
$@"Variable ""{variableKey}"" is not used in variation ""control"", returning default value ""{expectedValue}""."));
29842965
}
29852966

29862967
// Should return variable value from variation and log message when feature is enabled for the user
@@ -3018,8 +2999,7 @@ public void
30182999
Assert.AreEqual(expectedValue, variableValue);
30193000

30203001
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
3021-
$@"Got variable value ""{variableValue}"" for variable ""{variableKey
3022-
}"" of feature flag ""{featureKey}""."));
3002+
$@"Got variable value ""{variableValue}"" for variable ""{variableKey}"" of feature flag ""{featureKey}""."));
30233003
}
30243004

30253005
// Verify that GetFeatureVariableValueForType returns correct variable value for rollout rule.
@@ -3173,8 +3153,7 @@ public void TestIsFeatureEnabledGivenFeatureFlagIsEnabledAndUserIsNotBeingExperi
31733153

31743154
// SendImpressionEvent() does not get called.
31753155
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
3176-
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey
3177-
}""."), Times.Once);
3156+
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey}""."), Times.Once);
31783157

31793158
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
31803159
$@"Feature flag ""{featureKey}"" is enabled for user ""{TestUserId}""."));
@@ -3207,8 +3186,7 @@ public void TestIsFeatureEnabledGivenFeatureFlagIsEnabledAndUserIsBeingExperimen
32073186

32083187
// SendImpressionEvent() gets called.
32093188
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
3210-
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey
3211-
}""."), Times.Never);
3189+
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey}""."), Times.Never);
32123190

32133191
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
32143192
$@"Feature flag ""{featureKey}"" is enabled for user ""{TestUserId}""."));
@@ -3242,8 +3220,7 @@ public void TestIsFeatureEnabledGivenFeatureFlagIsNotEnabledAndUserIsBeingExperi
32423220

32433221
// SendImpressionEvent() gets called.
32443222
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
3245-
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey
3246-
}""."), Times.Never);
3223+
$@"The user ""{TestUserId}"" is not being experimented on feature ""{featureKey}""."), Times.Never);
32473224

32483225
LoggerMock.Verify(l => l.Log(LogLevel.INFO,
32493226
$@"Feature flag ""{featureKey}"" is not enabled for user ""{TestUserId}""."));

0 commit comments

Comments
 (0)