Esempio n. 1
0
        public void ToJsonTest()
        {
            var j = this.instance.ToJson();

            var obj = Outdoors.FromJson(j);

            var vF = obj.ViewFactor.Obj;

            Assert.IsTrue(vF is Autocalculate);
        }
Esempio n. 2
0
        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);
        }