public void SerializeNuiBindStringReturnsValidJsonStructure() { NuiBind <string> test = new NuiBind <string>("test"); Assert.That(JsonUtility.ToJson(test), Is.EqualTo(@"{""bind"":""test""}")); }
public void DeserializeNuiBindNuiRectReturnsValidJsonStructure() { NuiBind <NuiRect>?test = JsonUtility.FromJson <NuiBind <NuiRect> >(@"{""bind"":""test""}"); Assert.That(test?.Key, Is.EqualTo("test")); }