public void ToDirectoryProtectionIndicator_1_True() { var personTotal = new PersonTotalStub() { DirectoryProtectionMarker = '1' }; var result = personTotal.ToDirectoryProtectionIndicator(); Assert.True(result); }
public void ToDirectoryProtectionIndicator_OtherValues_False( [Values(null, '2', '0', 'w', 'A')] char?protectionIndicator) { var personTotal = new PersonTotalStub() { DirectoryProtectionMarker = protectionIndicator }; var result = personTotal.ToDirectoryProtectionIndicator(); Assert.False(result); }
public void ToCprBorgerType_DirProtection_CorrectResult( [Values(null, '1')] char?dirProtection) { var personTotal = new PersonTotalStub() { DirectoryProtectionMarker = dirProtection }; var result = personTotal.ToCprBorgerType(null, null, null); Assert.AreEqual(personTotal.ToDirectoryProtectionIndicator(), result.ForskerBeskyttelseIndikator); }