Ejemplo n.º 1
0
        public void ToAddressProtectionIndicator_1_True()
        {
            var personTotal = new PersonTotalStub()
            {
                AddressProtectionMarker = '1'
            };
            var result = personTotal.ToAddressProtectionIndicator();

            Assert.True(result);
        }
Ejemplo n.º 2
0
        public void ToAddressProtectionIndicator_OtherValues_False(
            [Values(null, '2', '0', 'w', 'A')] char?protectionIndicator)
        {
            var personTotal = new PersonTotalStub()
            {
                AddressProtectionMarker = protectionIndicator
            };
            var result = personTotal.ToAddressProtectionIndicator();

            Assert.False(result);
        }