Beispiel #1
0
        public void TransactionSync2()
        {
            var exclusive = m_Manager.BeginExclusiveEntityTransaction();
            var middle = new SyncMiddleJob {
                Txn = exclusive
            }.Schedule();

            Assert.Throws <InvalidOperationException>(() =>
            {
                // job wasn't registered & thus couldn't be synced
                m_Manager.EndExclusiveEntityTransaction();
                new SyncIJobChunk {
                }.Schedule(m_Manager.UniversalQuery).Complete();
            });
            middle.Complete();
        }