Esempio n. 1
0
    public static int Main()
    {
        int _int = 1;

        Eval(Gen <int> .Assign(_int).Equals(_int));

        double _double = 1;

        Eval(Gen <double> .Assign(_double).Equals(_double));

        string _string = "string";

        Eval(Gen <string> .Assign(_string).Equals(_string));

        object _object = new object();

        Eval(Gen <object> .Assign(_object).Equals(_object));

        Guid _Guid = new Guid(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);

        Eval(Gen <Guid> .Assign(_Guid).Equals(_Guid));

        if (result)
        {
            Console.WriteLine("Test Passed");
            return(100);
        }
        else
        {
            Console.WriteLine("Test Failed");
            return(1);
        }
    }