private OptimizelyAttribute[] GetAttributes(ProjectConfig projectConfig) { var attributes = new List <OptimizelyAttribute>(); foreach (var attr in projectConfig.Attributes) { var attribute = new OptimizelyAttribute(); attribute.Id = attr.Id; attribute.Key = attr.Key; attributes.Add(attribute); } return(attributes.ToArray()); }
public static void AreEqual(OptimizelyAttribute expected, OptimizelyAttribute actual) { Assert.AreEqual(expected.Id, actual.Id); Assert.AreEqual(expected.Key, actual.Key); }