public void SetupWindow_With_IntPtr_More_Than_Once_Throws_InvalidOperationException()
 {
     using (var sciterHost = new TestableSciterHost())
     {
         sciterHost.SetupWindow(_fakePointer);
         Assert.Throws <InvalidOperationException>(() => sciterHost.SetupWindow(_fakePointer));
     }
 }
 public void SetupWindow_With_IntPtr_And_An_Invalid_Handle_Throws_ArgumentOutOfRangeException()
 {
     using (var sciterHost = new TestableSciterHost())
     {
         Assert.Throws <ArgumentOutOfRangeException>(() => sciterHost.SetupWindow(IntPtr.Zero));
     }
 }
 public void SetupWindow_With_An_Null_SciterWindow_Throws_ArgumentNullException()
 {
     using (var sciterHost = new TestableSciterHost())
     {
         Assert.Throws <ArgumentNullException>(() => sciterHost.SetupWindow((SciterWindow)null));
     }
 }