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