public void GetPropertiesToPropagateByPropertyName() { var sut = new MessageProperties(); sut.SetProperty(BtsProperties.MessageType, nameof(BtsProperties.MessageType)); sut.SetProperty(BtsProperties.Operation, nameof(BtsProperties.Operation)); sut.SetProperty(BtsProperties.ReceiveLocationName, null); sut.GetPropertiesToPropagateByPropertyName( new[] { BtsProperties.MessageType.QName, BtsProperties.Operation.QName, BtsProperties.ReceiveLocationName.QName, BtsProperties.InterchangeID.QName }) .Should().BeEquivalentTo( new[] { new PropertyValuePair(BtsProperties.MessageType.QName, nameof(BtsProperties.MessageType)), new PropertyValuePair(BtsProperties.Operation.QName, nameof(BtsProperties.Operation)) }) .And.NotContain( kvp => kvp.Key == BtsProperties.ReceiveLocationName.QName ); }