diff --git a/.gitignore b/.gitignore index 496ee2c..2c970d4 100755 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.DS_Store \ No newline at end of file +.DS_Store +bin-debug/ \ No newline at end of file diff --git a/README.md b/README.md index 4c39723..b1cc0df 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ __Source code to support my user presentation at the 2010 ESRI Developers Summit * [Parsely](http://www.spicefactory.org/parsely) * [FlexUnit4](http://opensource.adobe.com/wiki/display/flexunit/FlexUnit) * [ASMock](http://asmock.sourceforge.net/) -* [Hamcrest] http://github.com/drewbourne/hamcrest-as3 +* [Hamcrest](http://github.com/drewbourne/hamcrest-as3) * [Great article on View Patterns by Paul Williams of Adobe](http://blogs.adobe.com/paulw/archives/2007/09/presentation_pa.html) diff --git a/test/application/StadiumSelectedCommandTest.as b/test/application/StadiumSelectedCommandTest.as index e692691..dbdc8e9 100755 --- a/test/application/StadiumSelectedCommandTest.as +++ b/test/application/StadiumSelectedCommandTest.as @@ -10,14 +10,12 @@ package application public class StadiumSelectedCommandTest { - [Test] public function shouldSetSelectedStadiumOnModel():void{ //Arrange var comm:StadiumSelectedCommand= new StadiumSelectedCommand(); comm.selectedExtent= new Extent(); var stadium:Stadium = new Stadium("Cowboys","NFC"); - var mp:MapPoint = new MapPoint(1,2); stadium.geometry =mp; //Act diff --git a/test/presentation/MapViewPMTest.as b/test/presentation/MapViewPMTest.as index b47228a..1f7fa72 100755 --- a/test/presentation/MapViewPMTest.as +++ b/test/presentation/MapViewPMTest.as @@ -9,21 +9,17 @@ package presentation import org.flexunit.experimental.eventfulTestCase.EventfulTestCase; public class MapViewPMTest extends EventfulTestCase - { - + { [Test] public function shouldDispatchSelectStadiumsEvent():void{ //Arrange var pm:MapViewPM = new MapViewPM(); var extent:Extent = new Extent(1,2,3,4); listenForEvent(pm,"selectStadiums",true); - //Act pm.selectStadiums(extent); - //Assert - assertEvents(); - + assertEvents(); } [Test]