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 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 bool TestCallback () { SincroNotSupported bob = new SincroNotSupported (); return bob.CallBack (this); }
public bool TestCallback() { SincroNotSupported bob = new SincroNotSupported(); return(bob.CallBack(this)); }