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