コード例 #1
0
		public void FillRepositioningOfFieldPosition()
		{
			var field = new Field();
			field.RandomizeField(Difficulty.Hard);

			field.Position = new Position(0, 0);
			var originalPosition = field.Position.Clone();
			var defaultFieldFiller = new DefaultFieldFiller();
			defaultFieldFiller.Fill(field);

			Assert.AreNotEqual(originalPosition.X, field.Position.X);
			Assert.AreNotEqual(originalPosition.Y, field.Position.Y);
		}
コード例 #2
0
		public void FillWithNull()
		{
			var defaultFieldFiller = new DefaultFieldFiller();
			defaultFieldFiller.Fill(null);
		}