public void When_the_exported_person_iscool_property_is_false_then_the_acquisitiondate_is_null( ExportPersonFactory sut) { ImportPerson importPerson = SetupUncoolPerson(); var result = sut.Create(importPerson); Assert.IsNull(result.AcquisitionDate); }
public void When_the_imported_person_favorite_color_is_purple_pink_or_green_then_the_exported_person_iscool_is_true( ExportPersonFactory sut) { ImportPerson importPerson = SetupCoolPerson(); var result = sut.Create(importPerson); Assert.IsTrue(result.IsCool); }
public void When_the_imported_person_favorite_color_is_blue_red_or_orange_then_the_exported_person_iscool_is_false( ExportPersonFactory sut) { ImportPerson importPerson = SetupUncoolPerson(); var result = sut.Create(importPerson); Assert.IsFalse(result.IsCool); }
public void When_the_imported_person_has_a_gender_of_F_then_the_exported_person_name_is_prepended_with_Mrs( ExportPersonFactory sut) { var importPerson = new ImportPerson { Gender = Gender.F, Name = "Briana" }; var result = sut.Create(importPerson); Assert.AreEqual("Ms. Briana", result.Name); }
public void When_the_exported_person_is_created_then_the_address_is_copied( string dummyAddress, ExportPersonFactory sut) { var importPerson = new ImportPerson { Address = dummyAddress }; var result = sut.Create(importPerson); Assert.AreEqual(dummyAddress, result.Address); }
public void When_the_exported_person_iscool_property_is_true_then_the_acquisitiondate_is_2_years_after_imported_person_observation_date( ExportPersonFactory sut) { ImportPerson importPerson = SetupCoolPerson(); importPerson.ObservationDate = DateTime.Now; var result = sut.Create(importPerson); Assert.IsTrue(result.AcquisitionDate != null); Assert.AreEqual(importPerson.ObservationDate.AddYears(2), result.AcquisitionDate); }