示例#1
0
        public void Handle(BuildState state)
        {
            var instance = new Instance(
                state.NetlistSource,
                state.CurrentModuleName,
                _parser.GetModuleName(state.CurrentStatementTrimmed),
                _parser.GeInstanceName(state.CurrentStatementTrimmed)
                )
            {
                Net = _parser.GetNet(state.CurrentStatementTrimmed).ToList()
            };

            _instanceRepository.Add(instance);
        }
        public void GetInstanceName_InstanceStatement_ReturnsInstanceName(string statement)
        {
            var result = _target.GeInstanceName(statement);

            Assert.That(result, Is.EqualTo("inst100408"));
        }