Example #1
0
        public void Empty()
        {
            var set = new S.XmlSchemaSet();

            G.ThisAssembly = A.GetExecutingAssembly();
            G.GenerateXObjects(set, null, null, null, true, false);
        }
Example #2
0
        public void UnionTest(string s)
        {
            var set      = new S.XmlSchemaSet();
            var settings = new XML.XmlReaderSettings()
            {
                DtdProcessing = XML.DtdProcessing.Parse,
            };
            var reader = new System.IO.StringReader(s);
            var r      = XML.XmlReader.Create(reader, settings);

            set.Add(null, r);
            G.ThisAssembly = A.GetExecutingAssembly();
            G.GenerateXObjects(set, "temp.cs", null, null, true, false);
        }
Example #3
0
        public global::System.Collections.Generic.IEnumerable <global::System.IO.Stream> LoadModelFragments()
        {
            global::System.Reflection.Assembly assembly = global::System.Reflection.Assembly.GetExecutingAssembly();
            global::System.Collections.Generic.List <global::System.IO.Stream> streams = new global::System.Collections.Generic.List <global::System.IO.Stream>();

            foreach (string resourceName in assembly.GetManifestResourceNames())
            {
                if (resourceName.EndsWith(".lsml", global::System.StringComparison.OrdinalIgnoreCase))
                {
                    streams.Add(assembly.GetManifestResourceStream(resourceName));
                }
            }

            return(streams);
        }
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool assemblyValueAcquired = false;
                if (this.Session.ContainsKey("assembly"))
                {
                    this._assemblyField   = ((global::System.Reflection.Assembly)(this.Session["assembly"]));
                    assemblyValueAcquired = true;
                }
                if ((assemblyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("assembly");
                    if ((data != null))
                    {
                        this._assemblyField = ((global::System.Reflection.Assembly)(data));
                    }
                }
            }
        }
Example #5
0
        public global::System.Resources.ResourceManager GetModelResourceManager()
        {
            if (resourceManagerChecked == false)
            {
                global::System.Reflection.Assembly assembly = global::System.Reflection.Assembly.GetExecutingAssembly();

                foreach (string resourceName in assembly.GetManifestResourceNames())
                {
                    if (resourceName.EndsWith("Client.resources", global::System.StringComparison.OrdinalIgnoreCase))
                    {
                        string resxName = resourceName.Substring(0, resourceName.Length - ".resources".Length);
                        resourceManager = new global::System.Resources.ResourceManager(resxName, assembly);
                        break;
                    }
                }
                resourceManagerChecked = true;
            }

            return(resourceManager);
        }
Example #6
0
        virtual public object Clone()
        {
            if (!(this is IPersistable))
            {
                return(null);
            }

            try
            {
                object clone = null;
                if (PlugInManager.IsPlugin(this))
                {
                    PlugInManager compMan = new PlugInManager();
                    clone = compMan.CreateInstance(PlugInManager.PlugInID(this));
                }
                else
                {
                    global::System.Reflection.Assembly assembly = global::System.Reflection.Assembly.GetAssembly(this.GetType());
                    clone = assembly.CreateInstance(this.GetType().ToString());
                }
                if (clone == null)
                {
                    return(null);
                }

                XmlStream stream = new XmlStream("root");
                ((IPersistable)this).Save(stream);
                ((IPersistable)clone).Load(stream);

                return(clone);
            }
            catch
            {
            }
            return(null);
        }
Example #7
0
 public RuleEngine_Spec_Tests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(RuleEngine_Spec_Tests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #8
0
 public xUnitTest_RQE_Test_wi19b066_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(xUnitTest_RQE_Test_wi19b066_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
 public Cubipool_Tests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Cubipool_Tests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #10
0
 public Aurora_IntegrationTests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Aurora_IntegrationTests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #11
0
    public static global::System.Type resolveClass(string name)
    {
        global::System.Type t = global::System.Type.GetType(((string)(name)));
        if (global::haxe.lang.Runtime.typeEq(t, null))
        {
            global::System.Collections.IEnumerator all = (global::System.AppDomain.CurrentDomain.GetAssemblies() as global::System.Array).GetEnumerator();
            while (all.MoveNext())
            {
                global::System.Reflection.Assembly t2 = ((global::System.Reflection.Assembly)(all.Current));
                t = t2.GetType(((string)(name)));
                if (!(global::haxe.lang.Runtime.typeEq(t, null)))
                {
                    break;
                }
            }
        }

        if (global::haxe.lang.Runtime.typeEq(t, null))
        {
            switch (name)
            {
            case "Class":
            {
                return((global::System.Type)(typeof(global::System.Type)));
            }


            case "Dynamic":
            {
                return((global::System.Type)(typeof(object)));
            }


            case "Float":
            {
                return((global::System.Type)(typeof(double)));
            }


            case "Int":
            {
                return((global::System.Type)(typeof(int)));
            }


            case "String":
            {
                return((global::System.Type)(typeof(string)));
            }


            default:
            {
                return(null);
            }
            }
        }
        else if ((t.IsInterface && (((global::System.Type)(typeof(global::haxe.lang.IGenericObject)))).IsAssignableFrom(((global::System.Type)(t)))))
        {
            {
                uint     _g_idx = default(uint);
                object[] _g_arr = (t as global::System.Reflection.MemberInfo).GetCustomAttributes(((bool)(true)));
                _g_idx = ((uint)(0));
                while (((bool)((_g_idx < (_g_arr as global::System.Array).Length))))
                {
                    object attr = ((object)(_g_arr[((int)(_g_idx++))]));
                    global::haxe.lang.GenericInterface g = ((global::haxe.lang.GenericInterface)((attr as global::haxe.lang.GenericInterface)));
                    if ((g != null))
                    {
                        return((global::System.Type)(g.generic));
                    }
                }
            }

            return((global::System.Type)(t));
        }
        else
        {
            return((global::System.Type)(t));
        }
    }
Example #12
0
 public Eventos_IO_TestesAutomatizados_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Eventos_IO_TestesAutomatizados_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
 public Erecruta_IntegratedTest_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Erecruta_IntegratedTest_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #14
0
 public Desafio_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Desafio_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
 public ProductsAnalysisWeb_Tests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(ProductsAnalysisWeb_Tests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #16
0
 public bdd_backend_tests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(bdd_backend_tests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #17
0
 public Fahrafellner_Test_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Fahrafellner_Test_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #18
0
    public static global::System.Type resolveClass(string name)
    {
        unchecked {
                        #line 101 "/opt/haxe/std/cs/_std/Type.hx"
            global::System.Type t = global::System.Type.GetType(((string)(name)));
                        #line 103 "/opt/haxe/std/cs/_std/Type.hx"
            if (global::System.Object.ReferenceEquals(((object)(t)), default(object)))
            {
                                #line 104 "/opt/haxe/std/cs/_std/Type.hx"
                global::System.Collections.IEnumerator all = (global::System.AppDomain.CurrentDomain.GetAssemblies() as global::System.Array).GetEnumerator();
                while (all.MoveNext())
                {
                                        #line 106 "/opt/haxe/std/cs/_std/Type.hx"
                    global::System.Reflection.Assembly t2 = ((global::System.Reflection.Assembly)(all.Current));
                    t = t2.GetType(((string)(name)));
                                        #line 108 "/opt/haxe/std/cs/_std/Type.hx"
                    if (!(global::System.Object.ReferenceEquals(((object)(t)), default(object))))
                    {
                                                #line 109 "/opt/haxe/std/cs/_std/Type.hx"
                        break;
                    }
                }
            }

                        #line 113 "/opt/haxe/std/cs/_std/Type.hx"
            if (global::System.Object.ReferenceEquals(((object)(t)), default(object)))
            {
                                #line 114 "/opt/haxe/std/cs/_std/Type.hx"
                switch (name)
                {
                case "Bool":
                {
                                                #line 126 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(bool)));
                }


                case "Class":
                {
                                                #line 120 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(global::System.Type)));
                }


                case "Dynamic":
                {
                                                #line 122 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(object)));
                }


                case "Float":
                {
                                                #line 118 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(double)));
                }


                case "Int":
                {
                                                #line 116 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(int)));
                }


                case "String":
                {
                                                #line 124 "/opt/haxe/std/cs/_std/Type.hx"
                    return((global::System.Type)(typeof(string)));
                }


                default:
                {
                                                #line 128 "/opt/haxe/std/cs/_std/Type.hx"
                    return(null);
                }
                }
            }
            else if ((t.IsInterface && (((global::System.Type)(typeof(global::haxe.lang.IGenericObject)))).IsAssignableFrom(((global::System.Type)(t)))))
            {
                                #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                {
                                        #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                    object[] _g_arr = (t as global::System.Reflection.MemberInfo).GetCustomAttributes(((bool)(true)));
                                        #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                    uint _g_idx = ((uint)(0));
                                        #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                    while ((_g_idx < (_g_arr as global::System.Array).Length))
                    {
                                                #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                        _g_idx += ((uint)(1));
                                                #line 133 "/opt/haxe/std/cs/_std/Type.hx"
                        object attr = ((object)(_g_arr[((int)(((uint)((_g_idx - 1)))))]));
                        global::haxe.lang.GenericInterface g = (((object)(attr)) as global::haxe.lang.GenericInterface);
                                                #line 135 "/opt/haxe/std/cs/_std/Type.hx"
                        if ((g != null))
                        {
                                                        #line 136 "/opt/haxe/std/cs/_std/Type.hx"
                            return((global::System.Type)(g.generic));
                        }
                    }
                }

                                #line 139 "/opt/haxe/std/cs/_std/Type.hx"
                return((global::System.Type)(t));
            }
            else
            {
                                #line 142 "/opt/haxe/std/cs/_std/Type.hx"
                return((global::System.Type)(t));
            }
        }
                #line default
    }
 public BankWebApi_AcceptanceTest_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(BankWebApi_AcceptanceTest_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #20
0
 public RestSharpTraining_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(RestSharpTraining_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #21
0
 public PROJECT_ROOT_NAMESPACE_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(PROJECT_ROOT_NAMESPACE_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #22
0
        public static global::System.Type resolveClass(string name)
        {
            unchecked {
                                #line 98 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                if ((global::haxe.lang.StringExt.indexOf(name, ".", null) == -1))
                {
                                        #line 99 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    name = global::haxe.lang.Runtime.concat("haxe.root.", name);
                }

                                #line 101 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                global::System.Type t = global::System.Type.GetType(((string)(name)));
                                #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                if (global::System.Object.ReferenceEquals(((object)(t)), default(object)))
                {
                                        #line 104 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    global::System.Collections.IEnumerator all = (global::System.AppDomain.CurrentDomain.GetAssemblies() as global::System.Array).GetEnumerator();
                    while (all.MoveNext())
                    {
                                                #line 106 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        global::System.Reflection.Assembly t2 = ((global::System.Reflection.Assembly)(all.Current));
                        t = t2.GetType(((string)(name)));
                                                #line 108 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        if (!(global::System.Object.ReferenceEquals(((object)(t)), default(object))))
                        {
                                                        #line 109 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                            break;
                        }
                    }
                }

                                #line 113 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                if (global::System.Object.ReferenceEquals(((object)(t)), default(object)))
                {
                                        #line 114 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    switch (name)
                    {
                    case "haxe.root.Bool":
                    {
                                                        #line 126 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(bool)));
                    }


                    case "haxe.root.Class":
                    {
                                                        #line 120 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(global::System.Type)));
                    }


                    case "haxe.root.Dynamic":
                    {
                                                        #line 122 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(object)));
                    }


                    case "haxe.root.Float":
                    {
                                                        #line 118 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(double)));
                    }


                    case "haxe.root.Int":
                    {
                                                        #line 116 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(int)));
                    }


                    case "haxe.root.String":
                    {
                                                        #line 124 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return((global::System.Type)(typeof(string)));
                    }


                    default:
                    {
                                                        #line 128 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        return(null);
                    }
                    }
                }
                else
                {
                                        #line 142 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    return((global::System.Type)(t));
                }
            }
                        #line default
        }
Example #23
0
 public R1_Hub_AutomationTest_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(R1_Hub_AutomationTest_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #24
0
 public XUnitTestProject2_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(XUnitTestProject2_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #25
0
 public AmazonAutomation_Specs_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(AmazonAutomation_Specs_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #26
0
 public Resource(global::System.Reflection.Assembly assembly, string id)
 {
     this.assembly = assembly;
     this.id = id;
 }
Example #27
0
 public FileReaderResource(global::System.Reflection.Assembly asm ,string myNamespace)
 {
     this.asm = asm;
     this.myNamespace = myNamespace;
     this.reader = null;
 }
Example #28
0
 public Visual_Studio_Settings_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(Visual_Studio_Settings_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
 public MovieRentalApp_Automation_UI_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(MovieRentalApp_Automation_UI_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }
Example #30
0
 public CalculoFinanceiro_Tests_XUnitAssemblyFixture()
 {
     _currentAssembly = typeof(CalculoFinanceiro_Tests_XUnitAssemblyFixture).Assembly;
     global::TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(_currentAssembly);
 }