Ejemplo n.º 1
0
        static void Main()
        {
            Console.WriteLine("starting example");
            BasicTests win = new BasicTests();

            win.Run(30);
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Console.WriteLine("starting example");
            BasicTests win = new BasicTests();

            win.VSync = OpenTK.VSyncMode.Adaptive;
            win.Run(30);
        }
Ejemplo n.º 3
0
        static void Main()
        {
                        #if DEBUG
            TextWriterTraceListener listener = new TextWriterTraceListener("debug.log");
            Debug.Listeners.Add(listener);
                        #endif

            Console.WriteLine("starting example");
            BasicTests win = new BasicTests();
            win.VSync = OpenTK.VSyncMode.Adaptive;
            win.Run(30);
                        #if DEBUG
            listener.Dispose();
                        #endif
        }
Ejemplo n.º 4
0
        public void PropertyConstrains()
        {
            var cardsPi = typeof(CardSet <>).GetProperty("Cards", BindingFlags.NonPublic | BindingFlags.Instance);

            Assert.IsTrue(cardsPi.GetSetMethod(true).IsPrivate);
            Assert.IsTrue(cardsPi.GetGetMethod(true).IsPrivate);
            var typePi = BasicTests.GetProperty <Card, CardType>(c => c.Type);

            Assert.IsTrue(typePi.GetSetMethod(true).IsPrivate);
            var colorPi = BasicTests.GetProperty <Card, CardColor>(c => c.Color);

            Assert.IsTrue(colorPi.GetSetMethod(true).IsPrivate);
            var comparisonsPi = BasicTests.GetProperty <SortSummary, uint>(s => s.Comparisons);

            Assert.IsTrue(comparisonsPi.GetSetMethod(true).IsPrivate);
            Assert.AreEqual(typeof(uint), comparisonsPi.PropertyType);
            var swapsPi = BasicTests.GetProperty <SortSummary, uint>(s => s.Swaps);

            Assert.IsTrue(swapsPi.GetSetMethod(true).IsPrivate);
            Assert.AreEqual(typeof(uint), swapsPi.PropertyType);
        }
Ejemplo n.º 5
0
 public void TestLambdaOnDemandOrleans()
 {
     BasicTests.TestLambda(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 6
0
 public void TestInterfaceMethodCallOnDemandOrleans()
 {
     BasicTests.TestInterfaceMethodCall(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 7
0
 public void TestPropertyCallOnDemandOrleans()
 {
     BasicTests.TestPropertyCall(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 8
0
 public void TestNamedParametersOnDemandAsync()
 {
     BasicTests.TestNamedParameters(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 9
0
 public void TestRecursionOnDemandAsync()
 {
     BasicTests.TestRecursion(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 10
0
 public void TestForLoopOnDemandOrleans()
 {
     BasicTests.TestForLoop(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 11
0
 public void TestRecursionOnDemandOrleans()
 {
     BasicTests.TestRecursion(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 12
0
 public void TestFieldLoadInCalleeOnDemandAsync()
 {
     BasicTests.TestFieldLoadInCallee(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 13
0
 public void TestCallInterfaceDelegateOnDemandAsync()
 {
     BasicTests.TestCallInterfaceDelegate(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 14
0
 public void TestClassesWithSameFieldNameOnDemandAsync()
 {
     BasicTests.TestClassesWithSameFieldName(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 15
0
 public void TestFieldAccessOnDemandAsync()
 {
     BasicTests.TestFieldAccess(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 16
0
 public void TestForLoopOnDemandAsync()
 {
     BasicTests.TestForLoop(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 17
0
 public void TestVirtualCallViaSuperClassOnDemandAsync()
 {
     BasicTests.TestVirtualCallViaSuperClass(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 18
0
 public void TestNamedParametersOnDemandOrleans()
 {
     BasicTests.TestNamedParameters(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 19
0
 public void TestCallInterfaceDelegateOnDemandOrleans()
 {
     BasicTests.TestCallInterfaceDelegate(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 20
0
 public void TestGenericMethodOnDemandOrleans()
 {
     BasicTests.TestGenericMethod(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 21
0
 public void TestUpdateMethodSimpleCallOnDemandOrleans()
 {
     BasicTests.TestUpdateMethodSimpleCall(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 22
0
 public void TestVirtualCallViaSuperClassOnDemandOrleans()
 {
     BasicTests.TestVirtualCallViaSuperClass(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 23
0
 public void TestUpdateMethodStarOnDemandAsync()
 {
     BasicTests.TestUpdateMethodStar(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 24
0
 public void TestFieldAccessOnDemandOrleans()
 {
     BasicTests.TestFieldAccess(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 25
0
 public void TestGenericMethodOnDemandAsync()
 {
     BasicTests.TestGenericMethod(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 26
0
 public void TestClassesWithSameFieldNameOnDemandOrleans()
 {
     BasicTests.TestClassesWithSameFieldName(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 27
0
 public void TestFieldLoadInCalleeOnDemandOrleans()
 {
     BasicTests.TestFieldLoadInCallee(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 28
0
 public void TestAddMethodSimpleCallOnDemandAsync()
 {
     BasicTests.TestAddMethodSimpleCall(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 29
0
 public void TestArrowMethodBodyOnDemandOrleans()
 {
     BasicTests.TestArrowMethodBody(AnalysisStrategyKind.ONDEMAND_ORLEANS);
 }
Ejemplo n.º 30
0
 public void TestAddMethodOverrideOnDemandAsync()
 {
     BasicTests.TestAddMethodOverride(AnalysisStrategyKind.ONDEMAND_ASYNC);
 }
Ejemplo n.º 31
0
		static void Main ()
		{
			Console.WriteLine ("starting example");
			BasicTests win = new BasicTests ();
			win.VSync = OpenTK.VSyncMode.Adaptive;
			win.Run (30);
		}