public void Commit_NotCommitted_Success() { using (var transaction = new TestDesignerTransaction()) { transaction.Commit(); Assert.Equal(1, transaction.CommitCount); Assert.True(transaction.Committed); transaction.Commit(); Assert.Equal(1, transaction.CommitCount); Assert.True(transaction.Committed); } }
public void Commit_Cancelled_Success() { using (var transaction = new TestDesignerTransaction()) { transaction.Cancel(); transaction.Commit(); Assert.Equal(0, transaction.CommitCount); Assert.False(transaction.Committed); } }