Beispiel #1
0
    public static int Main()
    {
        var d = new Derived();

        d.Print();

        if (d.i != 90)
        {
            return(1);
        }

        int arg;

        d.TestOut(out arg);
        if (arg != 4)
        {
            return(2);
        }

        var d2 = new DerivedLibrary();

        d2.Print(0);

        if (d2.i != 30)
        {
            return(3);
        }

        return(0);
    }
Beispiel #2
0
	public static int Main ()
	{
		var d = new Derived ();
		d.Print ();

		if (d.i != 90)
			return 1;

		var d2 = new DerivedLibrary ();
		d2.Print (0);

		if (d2.i != 30)
			return 2;

		return 0;
	}
Beispiel #3
0
	public static int Main ()
	{
		var d = new Derived ();
		d.Print ();

		if (d.i != 90)
			return 1;
		
		int arg;
		d.TestOut (out arg);
		if (arg != 4)
			return 2;

		var d2 = new DerivedLibrary ();
		d2.Print (0);

		if (d2.i != 30)
			return 3;

		return 0;
	}
Beispiel #4
0
    public static int Main()
    {
        var d = new Derived();

        d.Print();

        if (d.i != 90)
        {
            return(1);
        }

        var d2 = new DerivedLibrary();

        d2.Print(0);

        if (d2.i != 30)
        {
            return(2);
        }

        return(0);
    }