Created
March 15, 2011 16:45
-
-
Save Stray/871006 to your computer and use it in GitHub Desktop.
A test that should fail in the SignalCommandMap
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
[Test(expects="org.swiftsuspenders.InjectorError")] | |
public function signal_values_no_longer_persist_from_one_to_the_next():void | |
{ | |
var propOne:TestCommandProperty = new TestCommandProperty(); | |
var propTwo:TestCommandProperty2 = new TestCommandProperty2(); | |
signalCommandMap.mapSignal(onePropSignal, TestOnePropertyCommand); | |
var secondPropSignal:TestCommandProperty2Signal = new TestCommandProperty2Signal(); | |
// this command requires the values dispatched by both signals | |
signalCommandMap.mapSignal(secondPropSignal, TestTwoPropertyConstructorCommand); | |
onePropSignal.dispatch(propOne); | |
secondPropSignal.dispatch(propTwo); | |
assertTrue(propOne.wasExecuted && propTwo.wasExecuted); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment