예제 #1
0
 public void NativeIntrinsicOperation()
 {
     OperationsTestHelper.RunWithMultipleSimulators((sim) =>
     {
         var actual = IntrinsicBody.Run(sim).Result;
         Assert.Equal(IntrinsicBody.RESULT, actual);
     });
 }
예제 #2
0
        public void NativeGenericOperation()
        {
            OperationsTestHelper.RunWithMultipleSimulators((sim) =>
            {
                var actual1 = DefaultBodyGeneric <string> .Run(sim, "hello").Result;
                Assert.Equal(IntrinsicBody.RESULT, actual1);

                var actual2 = DefaultBodyGeneric <long> .Run(sim, 1234).Result;
                Assert.Equal(1234, actual2);
            });
        }
예제 #3
0
        public void NativeIntrinsicGenericOperation()
        {
            OperationsTestHelper.RunWithMultipleSimulators((sim) =>
            {
                var actual = IntrinsicBodyGeneric <string> .Run(sim, "hello").Result;
                Assert.Equal(IntrinsicBody.RESULT, actual);

                actual = IntrinsicBodyGeneric <long> .Run(sim, 1234).Result;
                Assert.Equal("1234", actual);
            });
        }