public void GLWindowVisibilityChangedEventConstructor() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor START"); using (Rectangle rec = new Rectangle(20, 20, 100, 100)) { var glwin = new GLWindow("myGLWindow", rec, true); var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, true); Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent"); Assert.IsInstanceOf <GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type."); tlog.Debug(tag, "ConnectionCount : " + testingTarget.GetConnectionCount()); try { testingTarget.Emit(glwin, true); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)"); }
public void GLWindowVisibilityChangedEventEmit() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmit START"); string name = "myGLWindow"; Rectangle rec = new Rectangle(20, 20, 100, 100); GLWindow glwin = new GLWindow(name, rec, true); var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent"); Assert.IsInstanceOf <GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type."); try { testingTarget.Emit(glwin, true); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } rec.Dispose(); glwin.Destroy(); testingTarget.Dispose(); tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmit END (OK)"); }
public void GLWindowVisibilityChangedEventConstructor() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor START"); string name = "myGLWindow"; Rectangle rectangle = new Rectangle(20, 20, 100, 100); GLWindow a1 = new GLWindow(name, rectangle, true); GLWindowVisibilityChangedEvent b1 = new GLWindowVisibilityChangedEvent(a1.SwigCPtr.Handle, false); b1.Dispose(); a1.Destroy(); tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)"); Assert.Pass("GLWindowVisibilityChangedEventConstructor"); }
public void GLWindowVisibilityChangedEventGetConnectionCount() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventGetConnectionCount START"); string name = "myGLWindow"; Rectangle rectangle = new Rectangle(20, 20, 100, 100); GLWindow a1 = new GLWindow(name, rectangle, true); GLWindowVisibilityChangedEvent b1 = new GLWindowVisibilityChangedEvent(a1); b1.GetConnectionCount(); a1.Destroy(); tlog.Debug(tag, $"GLWindowVisibilityChangedEventGetConnectionCount END (OK)"); Assert.Pass("GLWindowVisibilityChangedEventGetConnectionCount"); }
public void GLWindowVisibilityChangedEventEmpty() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmpty START"); string name = "myGLWindow"; Rectangle rectangle = new Rectangle(20, 20, 100, 100); GLWindow a1 = new GLWindow(name, rectangle, true); GLWindowVisibilityChangedEvent b1 = new GLWindowVisibilityChangedEvent(a1); b1.Empty(); b1.Dispose(); a1.Destroy(); tlog.Debug(tag, $"GLWindowVisibilityChangedEventEmpty END (OK)"); Assert.Pass("GLWindowVisibilityChangedEventEmpty"); }
public void GLWindowVisibilityChangedEventConstructor() { tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor START"); string name = "myGLWindow"; Rectangle rec = new Rectangle(20, 20, 100, 100); GLWindow glwin = new GLWindow(name, rec, true); var testingTarget = new GLWindowVisibilityChangedEvent(glwin.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Can't create success object GLWindowVisibilityChangedEvent"); Assert.IsInstanceOf <GLWindowVisibilityChangedEvent>(testingTarget, "Should be an instance of GLWindowVisibilityChangedEvent type."); rec.Dispose(); glwin.Destroy(); testingTarget.Dispose(); tlog.Debug(tag, $"GLWindowVisibilityChangedEventConstructor END (OK)"); }