public void UnregisteredNameDNT() { Assert.DoesNotThrow(() => UnityDataHolder.changeClientID("", "")); Assert.DoesNotThrow(() => UnityDataHolder.removeClient("")); Assert.DoesNotThrow(() => UnityDataHolder.setString("", ts)); Assert.DoesNotThrow(() => UnityDataHolder.getData("")); }
public void SetDataNullThrows() { Assert.Throws <NullReferenceException>(() => UnityDataHolder.setString(null, ts)); Assert.Throws <NullReferenceException>(() => UnityDataHolder.setString(ts, null)); }
public void SetAndGetString() { UnityDataHolder.setString(ts, ts); Assert.True(UnityDataHolder.getData(ts).Equals(ts)); UnityDataHolder.removeClient(ts); }