Beispiel #1
0
        public void SerializeNuiBindStringReturnsValidJsonStructure()
        {
            NuiBind <string> test = new NuiBind <string>("test");

            Assert.That(JsonUtility.ToJson(test), Is.EqualTo(@"{""bind"":""test""}"));
        }
Beispiel #2
0
        public void DeserializeNuiBindNuiRectReturnsValidJsonStructure()
        {
            NuiBind <NuiRect>?test = JsonUtility.FromJson <NuiBind <NuiRect> >(@"{""bind"":""test""}");

            Assert.That(test?.Key, Is.EqualTo("test"));
        }