public void TestEqualsOnNull() { using ( Texture2D testTexture = new Texture2D( this.mockedGraphicsDeviceService.GraphicsDevice, 128, 128 ) ) { TextureRegion2D region = TextureRegion2D.FromTexels( testTexture, new Point(16, 32), new Point(48, 64) ); Assert.IsFalse(region.Equals(null)); } }
public void TestEqualsWithDifferingInstances() { using ( Texture2D testTexture = new Texture2D( this.mockedGraphicsDeviceService.GraphicsDevice, 128, 128 ) ) { TextureRegion2D region1 = TextureRegion2D.FromTexels( testTexture, new Point(16, 32), new Point(48, 64) ); TextureRegion2D region2 = TextureRegion2D.FromTexels( testTexture, new Point(80, 96), new Point(112, 128) ); Assert.IsFalse(region1.Equals(region2)); } }