Exemple #1
0
        public void AsyncOverrides_OverrideThrows()
        {
            AsyncVirtualMethodsChild obj = new AsyncVirtualMethodsChild();

            JsiiException exception = Assert.Throws <JsiiException>(() => obj.CallMe());

            Assert.Contains("Thrown by native code", exception.Message);
        }
Exemple #2
0
        public void AsyncOverrides_OverrideThrows()
        {
            AsyncVirtualMethodsChild obj = new AsyncVirtualMethodsChild();

            RuntimeException exception = Assert.Throws <RuntimeException>(() => obj.CallMe());

            Assert.Equal("Thrown by native code", exception.Message);
        }