public void _3_ShouldHaveAnAgeGroupBox() { Assert.That(_ageGroupBox, Is.Not.Null, () => "Could not find a GroupBox control with header 'Leeftijd'"); var radioButtons = _ageGroupBox.FindVisualChildren <RadioButton>().ToList(); Assert.That(radioButtons.Count, Is.EqualTo(4), () => "Could not find 4 RadioButtons within the age groupbox"); }
public void _2_ShouldHaveAGenderGroupBox() { Assert.That(_genderGroupBox, Is.Not.Null, () => "Could not find a GroupBox control with header 'Geslacht'"); var radioButtons = _genderGroupBox.FindVisualChildren <RadioButton>().ToList(); Assert.That(radioButtons.Count, Is.EqualTo(2), () => "Could not find 2 RadioButtons within the gender groupbox"); }