Esempio n. 1
0
    static int Main()
    {
        //
        // These tests just are compilation tests, the new property code
        // will excercise these
        //
        der d = new der();

        if (d.Message != "der")
        {
            return(1);
        }

        basec b = new basec();

        if (b.Message != "base")
        {
            return(2);
        }

        Derived dd = new Derived();

        dd.Thingy = 10;
        if (dd.BaseThingy != 0)
        {
            return(3);
        }

        Console.WriteLine("Test ok");
        return(0);
    }
Esempio n. 2
0
	static int Main ()
	{
		//
		// These tests just are compilation tests, the new property code
		// will excercise these
		//
		der d = new der ();
		if (d.Message != "der")
			return 1;

		basec b = new basec ();
		if (b.Message != "base")
			return 2;

		Derived dd = new Derived ();
		dd.Thingy = 10;
		if (dd.BaseThingy != 0)
			return 3;

		Console.WriteLine ("Test ok");
		return 0;
	}