Esempio n. 1
0
        public void Equals_Test()
        {
            PDFPoint target   = new PDFPoint(10, 20);
            PDFPoint other    = new PDFPoint(10, 20);
            bool     expected = true; // TODO: Initialize to an appropriate value
            bool     actual;

            actual = target.Equals(other);
            Assert.AreEqual(expected, actual);

            other    = new PDFPoint(20, 20);
            expected = false;
            actual   = target.Equals(other);
            Assert.AreEqual(expected, actual);

            other    = new PDFPoint(10, 10);
            expected = false;
            actual   = target.Equals(other);
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void Equals_Test1()
        {
            PDFPoint target   = new PDFPoint(10, 20);
            PDFPoint other    = new PDFPoint(10, 20);
            bool     expected = true;
            bool     actual;

            actual = PDFPoint.Equals(target, other);
            Assert.AreEqual(expected, actual);

            other    = new PDFPoint(20, 20);
            expected = false;
            actual   = PDFPoint.Equals(target, other);
            Assert.AreEqual(expected, actual);

            other    = new PDFPoint(10, 10);
            expected = false;
            actual   = PDFPoint.Equals(target, other);
            Assert.AreEqual(expected, actual);
        }