public void Get_Duplicate_Label_Warnings() { LabelChecker labelChecker = new LabelChecker(); Assert.IsTrue(manager.GetNotifications().Count == 0); List<FormObject> formObjects = new List<FormObject>(); formObjects.Add(CreateQuestion("id1", "label1", null)); formObjects.Add(CreateQuestion("id2", "label1", null)); INotificationManager notificationManager = labelChecker.AnalyzeAndReport(formObjects); Assert.IsTrue(notificationManager.GetNotifications().Count == 1); }
public void Get_Duplicate_Label_Warnings() { LabelChecker labelChecker = new LabelChecker(); Assert.IsTrue(manager.GetNotifications().Count == 0); List <FormObject> formObjects = new List <FormObject>(); formObjects.Add(CreateQuestion("id1", "label1", null)); formObjects.Add(CreateQuestion("id2", "label1", null)); INotificationManager notificationManager = labelChecker.AnalyzeAndReport(formObjects); Assert.IsTrue(notificationManager.GetNotifications().Count == 1); }