Class SchedulerTests
Tests for the Scheduler class.
Inheritance
System.Object
SchedulerTests
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Scheduling.Tests
Assembly: Fibula.Scheduling.Tests.dll
Syntax
[TestClass]
public class SchedulerTests
Methods
| Improve this Doc View SourceCancelling_AllEventsFor()
Checks that CancelAllFor(UInt32, Type) does what it should.
Declaration
[TestMethod]
public Task Cancelling_AllEventsFor()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous unit test. |
Cancelling_SingleEvent()
Checks that CancelEvent(IEvent) does what it should.
Declaration
[TestMethod]
public Task Cancelling_SingleEvent()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous unit test. |
Event_Expedition_Works()
Checks that event expedition works as intented.
Declaration
[TestMethod]
public Task Event_Expedition_Works()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous unit test. |
OnEventFired_IsCalled()
Checks that EventFired gets fired when an event is scheduled.
Declaration
[TestMethod]
public Task OnEventFired_IsCalled()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous unit test. |
ScheduleEvent_Throws_WhenBad()
Checks that ScheduleEvent(IEvent, Nullable<TimeSpan>) throws when needed.
Declaration
[TestMethod]
public void ScheduleEvent_Throws_WhenBad()
Scheduler_Initialization()
Checks Scheduler initialization.
Declaration
[TestMethod]
public void Scheduler_Initialization()