Ejemplo n.º 1
0
        public void Expectation1()
        {
            Point p = new Point(1, 1);

            var result = p.ToString();

            Assert.AreEqual("(1, 1)", result);
        }
Ejemplo n.º 2
0
        public void Expectation3()
        {
            object o = new Point(1, 1);
            ((Point) o).Change(3, 3);

            var result = o.ToString();

            Assert.AreEqual("(3, 3)", result);
        }
Ejemplo n.º 3
0
        public void Expectation2()
        {
            object o = new Point(2, 2);

            var result = o.ToString();

            Assert.AreEqual("(2, 2)", result);
        }
Ejemplo n.º 4
0
        public void Expectation4()
        {
            Point p = new Point(1, 1);
            ((IPoint) p).Change(4, 4);

            var result = p.ToString();

            Assert.AreEqual("(4, 4)", result);
        }