public void AddCustomShip()
        {
            //Arrange
            int  expectedWeight = 100 * 1000;
            Ship actual;

            //Act
            actual = ShipFactory.GenerateCustomShip(100, new System.Drawing.Size(4, 3));

            //Assert
            Assert.AreEqual(expectedWeight, actual.MaxWeight);
        }
Exemple #2
0
 public void AssignShip(Size size, int weight)
 {
     Ship = ShipFactory.GenerateCustomShip(weight, size);
 }