Пример #1
0
        public void TestHBObjectName()
        {
            string objName    = "zone_1";
            string objType    = "HBZone";
            var    PyHBObject = setPyObject(objName, objType);


            var HBObject = new HBZone(PyHBObject);

            Assert.AreEqual("zone_1", HBObject.Name);
        }
Пример #2
0
        public void TestHBObjectType_HBZone()
        {
            //Assemble
            string objName    = "zone_1";
            string objType    = "HBZone";
            var    PyHBObject = setPyObject(objName, objType);


            //Act
            var HBObject       = new HBZone(PyHBObject);
            var expectedResult = HBType.HBZone;
            var acturalResult  = HBObject.ObjectType;

            //Assert
            Assert.AreEqual(expectedResult, acturalResult);
        }