PageRenderTime 40ms CodeModel.GetById 26ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/TestSpss/VSCodeGenAccessors.cs

#
C# | 205 lines | 163 code | 32 blank | 10 comment | 1 complexity | 3bcdef122106c73ecf242dc3700e2bb3 MD5 | raw file
  1// ------------------------------------------------------------------------------
  2//<autogenerated>
  3//        This code was generated by a Microsoft Visual Studio Team System 2005.
  4//        Runtime Version:2.0.41020.0
  5//
  6//        Changes to this file may cause incorrect behavior and will be lost if
  7//        the code is regenerated.
  8//    
  9//</autogenerated>
 10//------------------------------------------------------------------------------
 11using Microsoft.VisualStudio.TestTools.UnitTesting;
 12
 13namespace Spss.Testing
 14{
 15public class BaseAccessor {
 16    
 17    protected Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject m_privateObject;
 18    
 19    public BaseAccessor(object target, Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType type) {
 20        m_privateObject = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(target, type);
 21    }
 22    
 23    public virtual object Target {
 24        get {
 25            return m_privateObject.Target;
 26        }
 27    }
 28    
 29    public override string ToString() {
 30        return this.Target.ToString();
 31    }
 32    
 33    public override bool Equals(object obj) {
 34        if (typeof(BaseAccessor).IsInstanceOfType(obj)) {
 35            obj = ((BaseAccessor)(obj)).Target;
 36        }
 37        return this.Target.Equals(obj);
 38    }
 39    
 40    public override int GetHashCode() {
 41        return this.Target.GetHashCode();
 42    }
 43}
 44
 45
 46public class Spss_SpssConvertAccessor : BaseAccessor {
 47    
 48    protected static Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType m_privateType = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(global::Spss.SpssConvert));
 49    
 50    public Spss_SpssConvertAccessor(global::Spss.SpssConvert target) : 
 51            base(target, m_privateType) {
 52    }
 53    
 54    public global::System.EventHandler notifyDoneCallback {
 55        get {
 56            global::System.EventHandler ret = ((global::System.EventHandler)(m_privateObject.GetField("notifyDoneCallback")));
 57            return ret;
 58        }
 59        set {
 60            m_privateObject.SetField("notifyDoneCallback", value);
 61        }
 62    }
 63    
 64    public global::System.EventHandler NotifyDoneCallback {
 65        get {
 66            global::System.EventHandler ret = ((global::System.EventHandler)(m_privateObject.GetProperty("NotifyDoneCallback")));
 67            return ret;
 68        }
 69    }
 70    
 71    public static global::Spss.SpssConvert CreatePrivate(global::System.EventHandler notifyDoneCallback) {
 72        object[] args = new object[] {
 73                notifyDoneCallback};
 74        Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Spss.SpssConvert), new System.Type[] {
 75                    typeof(global::System.EventHandler)}, args);
 76        return ((global::Spss.SpssConvert)(priv_obj.Target));
 77    }
 78    
 79    public void ToFileAsyncCB(global::System.IAsyncResult ar) {
 80        object[] args = new object[] {
 81                ar};
 82        m_privateObject.Invoke("ToFileAsyncCB", new System.Type[] {
 83                    typeof(global::System.IAsyncResult)}, args);
 84    }
 85}
 86public class Spss_SpssCasesCollectionAccessor : BaseAccessor {
 87    
 88    protected static Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType m_privateType = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(global::Spss.SpssCasesCollection));
 89    
 90    public Spss_SpssCasesCollectionAccessor(global::Spss.SpssCasesCollection target) : 
 91            base(target, m_privateType) {
 92    }
 93    
 94    public global::Spss.SpssDataDocument document {
 95        get {
 96            global::Spss.SpssDataDocument ret = ((global::Spss.SpssDataDocument)(m_privateObject.GetField("document")));
 97            return ret;
 98        }
 99        set {
100            m_privateObject.SetField("document", value);
101        }
102    }
103    
104    public int FileHandle {
105        get {
106            int ret = ((int)(m_privateObject.GetProperty("FileHandle")));
107            return ret;
108        }
109    }
110    
111    public int position {
112        get {
113            int ret = ((int)(m_privateObject.GetField("position")));
114            return ret;
115        }
116        set {
117            m_privateObject.SetField("position", value);
118        }
119    }
120    
121    public int Position {
122        get {
123            int ret = ((int)(m_privateObject.GetProperty("Position")));
124            return ret;
125        }
126        set {
127            m_privateObject.SetProperty("Position", value);
128        }
129    }
130    
131    public static global::Spss.SpssCasesCollection CreatePrivate(global::Spss.SpssDataDocument document) {
132        object[] args = new object[] {
133                document};
134        Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Spss.SpssCasesCollection), new System.Type[] {
135                    typeof(global::Spss.SpssDataDocument)}, args);
136        return ((global::Spss.SpssCasesCollection)(priv_obj.Target));
137    }
138}
139public class Spss_SpssVariablesCollectionAccessor : BaseAccessor {
140    
141    protected static Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType m_privateType = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(global::Spss.SpssVariablesCollection));
142    
143    public Spss_SpssVariablesCollectionAccessor(global::Spss.SpssVariablesCollection target) : 
144            base(target, m_privateType) {
145    }
146    
147    public global::System.Collections.ArrayList variables {
148        get {
149            global::System.Collections.ArrayList ret = ((global::System.Collections.ArrayList)(m_privateObject.GetField("variables")));
150            return ret;
151        }
152        set {
153            m_privateObject.SetField("variables", value);
154        }
155    }
156    
157    public global::Spss.SpssDataDocument document {
158        get {
159            global::Spss.SpssDataDocument ret = ((global::Spss.SpssDataDocument)(m_privateObject.GetField("document")));
160            return ret;
161        }
162        set {
163            m_privateObject.SetField("document", value);
164        }
165    }
166    
167    public int FileHandle {
168        get {
169            int ret = ((int)(m_privateObject.GetProperty("FileHandle")));
170            return ret;
171        }
172    }
173    
174    public static global::Spss.SpssVariablesCollection CreatePrivate(global::Spss.SpssDataDocument document) {
175        object[] args = new object[] {
176                document};
177        Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Spss.SpssVariablesCollection), new System.Type[] {
178                    typeof(global::Spss.SpssDataDocument)}, args);
179        return ((global::Spss.SpssVariablesCollection)(priv_obj.Target));
180    }
181    
182    public void InitializeVariablesList() {
183        object[] args = new object[0];
184        m_privateObject.Invoke("InitializeVariablesList", new System.Type[0], args);
185    }
186    
187    public void Commit() {
188        object[] args = new object[0];
189        m_privateObject.Invoke("Commit", new System.Type[0], args);
190    }
191    
192    public void EnsureAuthoringDictionary() {
193        object[] args = new object[0];
194        m_privateObject.Invoke("EnsureAuthoringDictionary", new System.Type[0], args);
195    }
196    
197    public string GenerateColumnName(string colName) {
198        object[] args = new object[] {
199                colName};
200        string ret = ((string)(m_privateObject.Invoke("GenerateColumnName", new System.Type[] {
201                    typeof(string)}, args)));
202        return ret;
203    }
204}
205}