コード例 #1
0
 public void UnregisteredNameDNT()
 {
     Assert.DoesNotThrow(() => UnityDataHolder.changeClientID("", ""));
     Assert.DoesNotThrow(() => UnityDataHolder.removeClient(""));
     Assert.DoesNotThrow(() => UnityDataHolder.setString("", ts));
     Assert.DoesNotThrow(() => UnityDataHolder.getData(""));
 }
コード例 #2
0
 public void SetDataNullThrows()
 {
     Assert.Throws <NullReferenceException>(() => UnityDataHolder.setString(null, ts));
     Assert.Throws <NullReferenceException>(() => UnityDataHolder.setString(ts, null));
 }
コード例 #3
0
 public void SetAndGetString()
 {
     UnityDataHolder.setString(ts, ts);
     Assert.True(UnityDataHolder.getData(ts).Equals(ts));
     UnityDataHolder.removeClient(ts);
 }