public void CheckThatBlockFactoryIsAssignedWhenUsingSimpleConstructor() { var dimensions = new Coordinate(4, 5); var blueprintBuilder = new BlueprintBuilder(dimensions); var position = new Coordinate(1, 2); Assert.IsTrue(blueprintBuilder.CreateBlock(position)); }
public void BlockCantBeCreatedIfSpotOccupied() { var position = new Coordinate(5, 4); blocks[4, 5] = mockBlock.Object; Assert.IsFalse(blueprintBuilder.CreateBlock(position)); }