Package dojo.gameoflife.a20111203gdcr3

Examples of dojo.gameoflife.a20111203gdcr3.RulesTest


   private Rules rules;

   @Before
   public void forEachTestCreateRules() {
      rules = new Rules(State.ALIVE);
   }
View Full Code Here


   }

   @Test
   public void whenDeadCellWithExactlyThreeLivingNeighboursThenItIsReborn() {
      // arrange - see setup()
      rules = new Rules(State.DEAD);
      // act
      rules.observeNeighbours(3);
      // assert
      assertThat(rules.decides(), is(Will.REBORN));
   }
View Full Code Here

TOP

Related Classes of dojo.gameoflife.a20111203gdcr3.RulesTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.