コード例 #1
0
ファイル: ComplianceTests.cs プロジェクト: floehopper/jsii
        public void AsyncOverrides_OverrideThrows()
        {
            AsyncVirtualMethodsChild obj = new AsyncVirtualMethodsChild();

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

            Assert.Contains("Thrown by native code", exception.Message);
        }
コード例 #2
0
ファイル: ComplianceTests.cs プロジェクト: dstufft/jsii
        public void AsyncOverrides_OverrideThrows()
        {
            AsyncVirtualMethodsChild obj = new AsyncVirtualMethodsChild();

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

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