コード例 #1
0
        public void ItRemovesCompletedEnlistments()
        {
            string       f1       = GetTempPathName();
            const string contents = "123";

            using (TransactionScope scope1 = new TransactionScope())
            {
                _target.AppendAllText(f1, contents);
                scope1.Complete();
            }

            Assert.Equal(0, TxFileManager.GetEnlistmentCount());
        }