public void TestNotSupported()
        {
            SincroRequiresNew ob  = new SincroRequiresNew();
            SynchRes          res = ob.CheckContextTransition(typeof(SincroNotSupported));

            Assert.IsTrue(res == SynchRes.NoSync, "Synchronizaton context not expected 1");

            SincroNotSupported ob2 = new SincroNotSupported();

            res = ob2.CheckContext(Thread.CurrentContext);
            Assert.IsTrue(res == SynchRes.NoSync, "Synchronizaton context not expected 2");
        }
        public void TestRequiresNew()
        {
            SincroRequiresNew ob  = new SincroRequiresNew();
            SynchRes          res = ob.CheckContextTransition(typeof(SincroRequiresNew));

            Assert.IsTrue(res == SynchRes.NewSync, "New synchronizaton context expected");

            SincroRequiresNew ob2 = new SincroRequiresNew();

            res = ob2.CheckContext(Thread.CurrentContext);
            Assert.IsTrue(res == SynchRes.NewSync, "Synchronizaton context not expected");
        }
		public void TestNotSupported ()
		{
			SincroRequiresNew ob = new SincroRequiresNew ();
			SynchRes res = ob.CheckContextTransition (typeof(SincroNotSupported));
			Assert ("Synchronizaton context not expected 1", res == SynchRes.NoSync);

			SincroNotSupported ob2 = new SincroNotSupported ();
			res = ob2.CheckContext (Thread.CurrentContext);
			Assert ("Synchronizaton context not expected 2", res == SynchRes.NoSync);
		}
		public void TestRequiresNew ()
		{
			SincroRequiresNew ob = new SincroRequiresNew ();
			SynchRes res = ob.CheckContextTransition (typeof(SincroRequiresNew));
			Assert ("New synchronizaton context expected", res == SynchRes.NewSync);

			SincroRequiresNew ob2 = new SincroRequiresNew ();
			res = ob2.CheckContext (Thread.CurrentContext);
			Assert ("Synchronizaton context not expected", res == SynchRes.NewSync);
		}
		public bool CallBack (SincroRequiresNew bob)
		{
			return bob.CheckConcurrency ();
		}
 public bool CallBack(SincroRequiresNew bob)
 {
     return(bob.CheckConcurrency());
 }
		public void TestRequired ()
		{
			SincroRequiresNew ob = new SincroRequiresNew ();
			SynchRes res = ob.CheckContextTransition (typeof(SincroRequired));
			Assert.IsTrue (res == SynchRes.SameSync, "Synchronizaton context expected 1");

			SincroRequired ob2 = new SincroRequired ();
			res = ob2.CheckContext (Thread.CurrentContext);
			Assert.IsTrue (res == SynchRes.NewSync, "Synchronizaton context expected 2");
		}