コード例 #1
0
ファイル: TimerTests.cs プロジェクト: wxdtony/PSharp
        public void ExceptionOnInvalidTimerTypeTest()
        {
            PSharpRuntime runtime = PSharpRuntime.Create();

            Exception ex = Assert.Throws <AssertionFailureException>(() => runtime.SetTimerMachineType(typeof(NonMachineSubClass)));
        }