public void Should_not_throw_exception_if_gender_can_not_be_detected(string middleName) { Assert.DoesNotThrow(() => GenderUtils.Detect(middleName)); }
public void Should_throw_ArgumentNullException_if_middle_name_is_not_provided(string middleName) { Assert.Throws <ArgumentNullException>(() => GenderUtils.Detect(middleName)); }
public void Should_detect_gender_using_extension_method(string middleName, Gender expectedGender) { var actualGender = GenderUtils.Detect(middleName); Assert.AreEqual(expectedGender, actualGender); }