public void TestSetEmptyPropertyName() { ActiveMQMessage msg = new ActiveMQMessage(); try { msg.Properties.SetString("", "Cheese"); Assert.Fail("Should have thrown exception"); } catch(Exception) { } }