public void TestSetReadOnly()
{
ActiveMQMessage msg = new ActiveMQMessage();
msg.ReadOnlyProperties = true;
bool test = false;
try
{
msg.Properties.SetInt("test", 1);
}
catch(MessageNotWriteableException)
{
test = true;
}
catch(NMSException)
{
test = false;
}
Assert.IsTrue(test);
}