LogHandler.Get().mode=LogMode.Verbose;// Some tests rely on log messages appearing. This is reset when entering Play mode, so it's safe to set it arbitrarily here.
}
[Test]
publicvoidBasicBehavior()
{
Messengermessenger=newMessenger();
intmsgCount=0;
SubscriberArgssub=newSubscriberArgs((type,msg)=>{
msgCount++;// These are just for simple detection of the intended behavior.
Assert.AreEqual(1,msgCount,"First subscriber adds another when receiving a message, but the new subscriber shouldn't immediately receive the same message.");