public void TestMethod1() { var t = new TargetClass(); var obj = t.CreatePointer(-1, -1); Assert.IsNull(obj); obj = t.CreatePointer(10, 20); Assert.IsNotNull(obj); Assert.AreEqual(10, obj.X); Assert.AreEqual(20, obj.Y); }