Exemplo n.º 1
0
        public void FormatValueToFilter_SecurityIdentifierCollection_ThrowsNotSupportedException()
        {
            //prepare
            var identifiers     = new Collection <SecurityIdentifier>(new[] { _identifier, _identifier2 });
            var propertyMapping = new SecurityIdentifierCollectionPropertyMapping <SecurityIdentifierCollectionPropertyMappingTest>(_mappingArguments);

            //act
            Executing.This(() => propertyMapping.FormatValueToFilter(identifiers))
            .Should().Throw <NotSupportedException>();
        }
Exemplo n.º 2
0
        public void FormatValueToFilter_SecurityIdentifier_ReturnsStringOctet()
        {
            //prepare
            var propertyMapping = new SecurityIdentifierCollectionPropertyMapping <SecurityIdentifierCollectionPropertyMappingTest>(_mappingArguments);

            //act
            var value = propertyMapping.FormatValueToFilter(_identifier);

            //assert
            value.Should().Be.EqualTo(_bytes.ToStringOctet());
        }