Пример #1
0
        public void SetUp()
        {
            _filter = new Filter();
            _filter.AddFilter("-[mscorlib]*");
            _filter.AddFilter("-[System]*");
            _filter.AddFilter("-[System.*]*");
            _filter.AddFilter("-[Microsoft.VisualBasic]*");
            _filter.AddFilter("+[OpenCover.Samples.*]*");

            _commandLine = new Mock<ICommandLine>();

            var filePersistance = new BasePersistanceStub(_commandLine.Object);
            _persistance = filePersistance;
        }
Пример #2
0
        public void SetUp()
        {
            _filter = new Filter(false);
            _filter.AddFilter("-[mscorlib]*");
            _filter.AddFilter("-[System]*");
            _filter.AddFilter("-[System.*]*");
            _filter.AddFilter("-[Microsoft.VisualBasic]*");
            _filter.AddFilter("+[OpenCover.Samples.*]*");

            _commandLine = new Mock <ICommandLine>();
            _logger      = new Mock <ILog>();

            var filePersistance = new BasePersistanceStub(_commandLine.Object, _logger.Object);

            _persistance = filePersistance;
        }