Пример #1
0
        void CheckScriptComponent(string shapeName, string scriptFileName)
        {
            ShapeBase shape = EditorManager.Scene.FindShapeByName(shapeName);

            Assert.IsTrue(shape.ComponentCount > 0);
            ShapeComponent shapeScriptComp = shape.Components.get_Item(0);

            Assert.IsNotNull(shapeScriptComp);
            DynamicProperty shapeProperty = shapeScriptComp.GetPropertyByName("ScriptFile");

            Assert.AreEqual(shapeProperty.Value, scriptFileName);
        }