예제 #1
0
        public void ItShouldGenerateASecret()
        {
            var secretFactory = new SecretFactory();

            var secret = secretFactory.GenerateSecret();

            Assert.That(secret.Count, Is.EqualTo(4));
        }
예제 #2
0
 public void StartGame(List <string> presetSecret = null)
 {
     state      = GameState.InProgress;
     guessCount = 0;
     secret     = presetSecret ?? secretFactory.GenerateSecret();
 }