コード例 #1
0
        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);
        }
コード例 #2
0
 public void CreateContainer_InvalidWeight(Container.type type, int weight)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => new Container(type, weight));
 }