public Map(int height, int weight, IGameObjectsList objects) { this.Width = weight; this.Height = height; matrix = new char[Height, Width]; gameObjects = objects; }
public Map(IGameObjectsList objects) { this.Width = Config.MAP_WIDTH; this.Height = Config.MAP_HEIGHT; matrix = new char[Height, Width]; gameObjects = objects; }
public Map(int height, int weight) { this.Width = weight; this.Height = height; matrix = new char[Height, Width]; gameObjects = new GameObjectsList(); }
public static void GameObjectsListClassInitialize(TestContext testContext) { Debug.WriteLine("Test items initializing starts..."); using (var mock = AutoMock.GetLoose()) { goList = mock.Create <GameObjectsList>(); gameObject1 = mock.Create <SalaryAddition>(); gameObject2 = mock.Create <SalaryAddition>(); gameObject3 = mock.Create <SalaryAddition>(); } bool debugIsNotNullflag = goList != null && gameObject1 != null && gameObject2 != null && gameObject3 != null; Debug.WriteLineIf(debugIsNotNullflag, "Test items initializing complete..."); Debug.WriteLineIf(!debugIsNotNullflag, "Test items are null..."); }