Created
August 24, 2015 08:40
-
-
Save ionoy/f570a7fef52543f37091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new TestScheduler().With(sc => { | |
var bus = MessageBus.Current; | |
var quad = Substitute.For<IQuad>(); | |
var vm = new MapViewModel(new Mission(quad, bus), quad, bus); | |
bus.SendMessage(new StartAddingWaypointsMessage()); | |
Assert.IsTrue(vm.IsAddingWaypoints); | |
bus.SendMessage(new StopAddingWaypointsMessage()); | |
Assert.IsFalse(vm.IsAddingWaypoints); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment