Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        ///
        [Test] public void FindType()
        {
            ObjectSupport.LoadAssembly(Assembly.GetAssembly(this.GetType()).Location);
            Type type = ObjectSupport.GetType("Oatc.OpenMI.Sdk.DevelopmentSupport.UnitTest.Location");

            Assert.AreEqual(typeof(Location), type);
        }
Ejemplo n.º 2
0
        [SetUp] public void Initialize()
        {
            File.Delete("Network.xml");
            File.Delete("Network1.xml");
            File.Delete("Network2.xml");
            File.Delete("Network3.xml");

            MetaInfo.SetAttribute(typeof(Element), "ID", "XmlKey", true);
            MetaInfo.SetAttribute(typeof(Element), "ID", "XmlRefName", "RefID");
            MetaInfo.SetAttribute(typeof(Network), "Nodes", "XmlIndex", 1);
            MetaInfo.SetAttribute(typeof(Network), "XmlFile", true);

            ObjectSupport.LoadAssembly(this.GetType().Assembly);
        }