コード例 #1
0
        public void AddPackageToLine_AddCustomPackage_ReturnAddedPackage()
        {
            //arrange
            Line line = _data.GetLine();

            _mock.Setup(s => s.Line.Get(It.IsAny <int>()))
            .Returns(line);

            _manager = new PackageManager(_mock.Object);

            //act
            var package = _manager.AddPackageToLine(1, _data.GetCustomPackage());

            //assert
            Assert.IsNotNull(package);
        }