public void UnregisteredNameDNT()
 {
     Assert.DoesNotThrow(() => UnityDataHolder.changeClientID("", ""));
     Assert.DoesNotThrow(() => UnityDataHolder.removeClient(""));
     Assert.DoesNotThrow(() => UnityDataHolder.setString("", ts));
     Assert.DoesNotThrow(() => UnityDataHolder.getData(""));
 }
Exemple #2
0
        public Task SendDataToUser()
        {
            string message
                = ClientInfo.getGroup(Context.ConnectionId).Equals("")
                ? UnityClientList.getClientList()
                : UnityDataHolder.getData(ClientInfo.getGroup(Context.ConnectionId));

            return(Clients.Caller.SendAsync("DataUpdate", message));
        }
 public void SetAndGetString()
 {
     UnityDataHolder.setString(ts, ts);
     Assert.True(UnityDataHolder.getData(ts).Equals(ts));
     UnityDataHolder.removeClient(ts);
 }
 public void CanGetData()
 {
     Assert.IsNotNull(UnityDataHolder.getData(ts));
 }