public void CreateContainer_CorrectInput(Container.type type, int weight) { Container container = new Container(type, weight); Assert.NotNull(container); Assert.AreEqual(type, container.ContainerType); Assert.AreEqual(weight, container.ContainerWeight); }
public void CreateContainer_InvalidWeight(Container.type type, int weight) { Assert.Throws <ArgumentOutOfRangeException>(() => new Container(type, weight)); }