Beispiel #1
0
 public void setClientPublicWorks()
 {
     UnityClientList.setClientPublic(ts, true);
     Assert.True(UnityClientList.getClientPublic(ts));
     UnityClientList.setClientPublic(ts, false);
     Assert.False(UnityClientList.getClientPublic(ts));
 }
Beispiel #2
0
 public void nullSetClientThrows()
 {
     Assert.Throws <NullReferenceException>(() => UnityClientList.setClientPublic(null, true));
 }
Beispiel #3
0
 public void unregisterdNameDNT()
 {
     Assert.DoesNotThrow(() => UnityClientList.removeClient(""));
     Assert.DoesNotThrow(() => UnityClientList.setClientPublic("", true));
     Assert.DoesNotThrow(() => UnityClientList.getClientPublic(""));
 }