public void TestEqualsWithIncompatibleEffect()
        {
            MockedGraphicsDeviceService service = new MockedGraphicsDeviceService();

            using (IDisposable keeper = service.CreateDevice()) {
                using (
                    BasicEffectDrawContext test1 = new BasicEffectDrawContext(service.GraphicsDevice)
                    ) {
                    TestEffectDrawContext test2 = new TestEffectDrawContext(null);

                    Assert.IsFalse(test1.Equals((object)test2));
                }
            }
        }
 public void TestEqualsWithDifferentObject() {
   MockedGraphicsDeviceService service = new MockedGraphicsDeviceService();
   using(IDisposable keeper = service.CreateDevice()) {
     using(
       BasicEffectDrawContext test1 = new BasicEffectDrawContext(service.GraphicsDevice)
     ) {
       using(
         BasicEffectDrawContext test2 = new BasicEffectDrawContext(service.GraphicsDevice)
       ) {
         Assert.IsTrue(test1.Equals((object)test2));
       }
     }
   }
 }
        public void TestEqualsWithDifferentObject()
        {
            MockedGraphicsDeviceService service = new MockedGraphicsDeviceService();

            using (IDisposable keeper = service.CreateDevice()) {
                using (
                    BasicEffectDrawContext test1 = new BasicEffectDrawContext(service.GraphicsDevice)
                    ) {
                    using (
                        BasicEffectDrawContext test2 = new BasicEffectDrawContext(service.GraphicsDevice)
                        ) {
                        Assert.IsTrue(test1.Equals((object)test2));
                    }
                }
            }
        }
    public void TestEqualsWithIncompatibleEffect() {
      MockedGraphicsDeviceService service = new MockedGraphicsDeviceService();
      using(IDisposable keeper = service.CreateDevice()) {
        using(
          BasicEffectDrawContext test1 = new BasicEffectDrawContext(service.GraphicsDevice)
        ) {
          TestEffectDrawContext test2 = new TestEffectDrawContext(null);

          Assert.IsFalse(test1.Equals((object)test2));
        }
      }
    }