Example #1
0
        public void TestTeciprocalMethodFalse()
        {
            TPoint point          = new TPoint(0, 40);
            bool   expectedexBool = point.reciprocal();

            Assert.IsFalse(expectedexBool);
        }
Example #2
0
        public void TestTeciprocalMethodTrue()
        {
            TPoint point          = new TPoint(0.25, 40);
            bool   expectedexBool = point.reciprocal();

            Assert.IsTrue(expectedexBool);
            Assert.AreEqual(4, point.X);
            Assert.AreEqual(0.025, point.Y);
        }