Esempio n. 1
0
 public void ShouldAllowOnlyASingleInstanceOfMazeFactory()
 {
     mazeFactory = MazeFactorySingleton.Instance("bombed");
     Assert.AreEqual("Singleton.MazeFactorySingleton", MazeFactorySingleton.GetInstanceType());
 }
Esempio n. 2
0
 public void Setup()
 {
     SetOrReset();
     mazeFactory = MazeFactorySingleton.Instance("");
     maze        = mazeGame.CreateMaze(mazeFactory);
 }
Esempio n. 3
0
 public void Setup()
 {
     SetOrReset();
     mazeFactory = MazeFactorySingleton.Instance("");
 }