public void Load_LoadsNestedJSONEntitySuccessfully() { TestJSONEntity testEntity = new TestJSONEntity(); testEntity.Load(JSONStrings.NestedJSONEntityString); Assert.IsNotNull(testEntity.NestedEntity); Assert.AreEqual(testEntity.NestedEntity.ValueFour, JSONStrings.ValidValueFour); Assert.AreEqual(testEntity.NestedEntity.ValueFive, JSONStrings.ValidValueFive); }
public void Load_LoadsValidJSONIntoEntityUsingMethod() { TestJSONEntity testEntity = new TestJSONEntity(); testEntity.Load(JSONStrings.ValidJSONEntityString); Assert.AreEqual(testEntity.ValueOne, JSONStrings.ValidValueOne); Assert.AreEqual(testEntity.ValueTwo, JSONStrings.ValidValueTwo); Assert.AreEqual(testEntity.ValueThree, JSONStrings.ValidValueThree); }