예제 #1
0
        public void committedEventArgs_ctor_normal_should_set_values()
        {
            var expected = CommitReason.AcceptChanges;
            CommittedEventArgs target = new CommittedEventArgs(expected);

            target.Reason.Should().Be.EqualTo(expected);
        }
예제 #2
0
        void OnCommitted(CommittedEventArgs e)
        {
            var h = this.Committed;

            if (h != null)
            {
                h(this, e);
            }
        }
예제 #3
0
        /// <summary>
        /// Called when Committed event.
        /// </summary>
        protected virtual void OnCommitted(CommittedEventArgs args)
        {
            var h = this.Committed;

            if (h != null)
            {
                h(this, args);
            }
        }
예제 #4
0
 protected override void OnCommitted(CommittedEventArgs args)
 {
     base.OnCommitted(new CommittedEventArgs(this.HackedCommitReason));
 }