Пример #1
0
        public void TestMain01()
        {
            StaticAccessor programAccessor = ReflectionAccessor.Wrap(typeof(Program));

            //Test Procedure Call
            programAccessor.Call("Main");
        }
Пример #2
0
 public void TestCreateWin32EventAndSetLogFile02()
 {
     //todo:stub: hEvent = OpenEvent(0x1F0003, false, eventName)  hEvent!=IntPtr.Zero
     //todo:stub: CloseHandle do nothing
     StaticAccessor programAccessor = ReflectionAccessor.Wrap(typeof(Program));
     string         str             = (string)programAccessor.Call("CreateWin32EventAndSetLogFile");
 }
Пример #3
0
        public void TestMain01()
        {
            string[] args = new string[1];
            args[0] = "view-0";
            StaticAccessor programAccessor = ReflectionAccessor.Wrap(typeof(Program));

            programAccessor.Call("Main", args); //timeout
        }
Пример #4
0
 public void TestMessageBeep02()
 {
     uint           type = 0;
     StaticAccessor messageBoxFormAccessor = ReflectionAccessor.Wrap(typeof(MessageBoxForm));
     bool           b = (bool)messageBoxFormAccessor.Call("MessageBeep", type);
 }
Пример #5
0
 public void TestCreateWin32EventAndSetLogFile03()
 {
     //stub:LogHelper.setLogFile throw exception
     StaticAccessor programAccessor = ReflectionAccessor.Wrap(typeof(Program));
     string         str             = (string)programAccessor.Call("CreateWin32EventAndSetLogFile");
 }
Пример #6
0
 public void TestCreateWin32EventAndSetLogFile01()
 {
     StaticAccessor programAccessor = ReflectionAccessor.Wrap(typeof(Program));
     string         str             = (string)programAccessor.Call("CreateWin32EventAndSetLogFile");
 }