Ejemplo n.º 1
0
 public static void AreEqual(OptimizelyFeature expected, OptimizelyFeature actual)
 {
     AreEquivalent(expected.DeliveryRules, actual.DeliveryRules);
     AreEquivalent(expected.ExperimentRules, actual.ExperimentRules);
     AreEquivalent(expected.ExperimentsMap, actual.ExperimentsMap);
     Assert.AreEqual(expected.Id, actual.Id);
     Assert.AreEqual(expected.Key, actual.Key);
     AreEquivalent(expected.VariablesMap, actual.VariablesMap);
 }
Ejemplo n.º 2
0
        public void TestOptimizelyFeatureEntity()
        {
            OptimizelyFeature expectedOptlyFeature = new OptimizelyFeature("1", "featKey",
                                                                           new Dictionary <string, OptimizelyExperiment>(),
                                                                           new Dictionary <string, OptimizelyVariable>()
                                                                           );

            Assert.AreEqual(expectedOptlyFeature.Id, "1");
            Assert.AreEqual(expectedOptlyFeature.Key, "featKey");
            Assert.AreEqual(expectedOptlyFeature.ExperimentsMap, new Dictionary <string, OptimizelyExperiment>());
            Assert.AreEqual(expectedOptlyFeature.VariablesMap, new Dictionary <string, OptimizelyVariable>());
        }