public void ToJsonTest() { var j = this.instance.ToJson(); var obj = Outdoors.FromJson(j); var vF = obj.ViewFactor.Obj; Assert.IsTrue(vF is Autocalculate); }
public void ToJsonViewFactorTest() { this.instance.ViewFactor = 0.5; var j = this.instance.ToJson(); var obj = Outdoors.FromJson(j); Assert.IsFalse(obj.SunExposure); var vF = obj.ViewFactor; var isTrue = vF == 0.5; Assert.IsTrue(isTrue); }