예제 #1
0
 public void Should_not_throw_exception_if_gender_can_not_be_detected(string middleName)
 {
     Assert.DoesNotThrow(() => GenderUtils.Detect(middleName));
 }
예제 #2
0
 public void Should_throw_ArgumentNullException_if_middle_name_is_not_provided(string middleName)
 {
     Assert.Throws <ArgumentNullException>(() => GenderUtils.Detect(middleName));
 }
예제 #3
0
        public void Should_detect_gender_using_extension_method(string middleName, Gender expectedGender)
        {
            var actualGender = GenderUtils.Detect(middleName);

            Assert.AreEqual(expectedGender, actualGender);
        }