public void FormatValueFromDirectory_SecurityIdentifier_ReturnsSecurityIdentifier() { //prepare var propertyMapping = new SecurityIdentifierPropertyMapping <SecurityIdentifierPropertyMappingTest>(_mappingArguments); //act var value = propertyMapping.FormatValueFromDirectory(new DirectoryAttribute("name", _bytes), "dn"); //assert value.Should().Be.EqualTo(_identifier); }
public void FormatValueFromDirectory_Null_ReturnsNull() { //prepare _mappingArguments.PropertyType = typeof(byte[]); var propertyMapping = new SecurityIdentifierPropertyMapping <SecurityIdentifierPropertyMappingTest>(_mappingArguments); //act var value = propertyMapping.FormatValueFromDirectory(null, "dn"); //assert value.Should().Be.Null(); }