Bike.Test.InteropTest.Is C# (CSharp) Метод

Is() приватный Метод

private Is ( ) : void
Результат void
        public void Is()
        {
            Interpret(@"load 'Bike.Test';
                        var ip = Test.Person('bike', 0, 'kiki')
                                 is Test.Person;")
                .Equal("ip", true);

            Interpret(@"var r;
                        var type = System.Exception;
                        try {
                            throw System.Exception();
                        } rescue e {
                            println('*******');
                            println(e);
                            println(e.cause);
                            if (e.cause is type) r = true;
                            if (e.cause is System.Exception) r &&= true;
                        }").Equal("r", true);

            Interpret(@"try {
                            throw System.ApplicationException();
                        } rescue e {
                            r = e is Bike.Number;
                        }").Equal("r", false);
        }