Exemple #1
0
    private IEnumerator ReceiveFromChannelTest()
    {
        ChannelConnection channelConnection = new ChannelConnection(this, onNotification, onError);

        channelConnection.Start(channel.Name);

        yield return(syncano.PublishOnChannel(CHANNEL_NAME, new Notification(CHANNEL_MESSAGE)));

        yield return(new WaitForSeconds(0.5f));

        IntegrationTest.Assert(channelMessage.Equals(CHANNEL_MESSAGE), "WRONG MESSAGE RECEIVED FROM CHANNEL");
        IntegrationTest.Pass();
    }