コード例 #1
0
        public void CallVirtualMethodWithInterfaceParameter()
        {
            Point p = new Point(9, 9);
            PointUser user = new PointUser();

            user.VirtualDoSomethingInterface(p);

            // no asert, just watch IL code
        }
コード例 #2
0
        public void CallMethodWithInterfaceInstanceParameter()
        {
            Point p = new Point(7, 7);
            PointUser user = new PointUser();

            user.DoSomethingInterface(p);

            // no asert, just watch IL code
        }
コード例 #3
0
        public void CallVirtualMethodWithConcreteParameter()
        {
            Point p = new Point(8, 8);
            PointUser user = new PointUser();

            user.VirtualDoSomethingConcrete(p);

            // no asert, just watch IL code
        }
コード例 #4
0
        public void CallMethodWithConcreteInstanceParameter()
        {
            Point p = new Point(6, 6);
            PointUser user = new PointUser();

            user.DoSomethingConcrete(p);

            // no asert, just watch IL code
        }