Example #1
0
        public void GetInformalVersion()
        {
            var          actual   = _sut.GetInformalVersion();
            const string expected = "0.0-Development";

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void GetInformalVersion()
        {
            var actual = _sut.GetInformalVersion();

            Assert.That(actual.StartsWith("0."));
            Assert.That(actual.EndsWith("-Release"));
        }
Example #3
0
        public void GetInformalVersion()
        {
            var actual = _sut.GetInformalVersion();

            Assert.That(actual.StartsWith("0."));
            Assert.That(actual.EndsWith("-Experimental"));
        }
Example #4
0
        public void FireTaskEvent(object sender, TaskEventArgs e)
        {
            _currentEvent             = Create <TaskEvent>();
            _currentEvent.TriggeredBy = EventTrigger.Unknown;
            _currentEvent.TaskId      = e.Task.Id;
            _currentEvent.Action      = e.Action;
            _currentEvent.Version     = _versionUtil.GetInformalVersion();

            if (e.Action == TaskAction.Create || e.Action == TaskAction.Edit)
            {
                _currentEvent.Annoyance  = e.Task.Annoyance;
                _currentEvent.Importance = e.Task.Importance;
                _currentEvent.Urgency    = e.Task.Urgency;
            }

            if (e.Action == TaskAction.Create || e.Action == TaskAction.Move)
            {
                _currentEvent.NewParentId = e.Task.Parent.Id;
            }

            Fire(_currentEvent);
            _currentEvent = null;
        }