Пример #1
0
        public CoverageMockBuilder WithAssembly(string name)
        {
            if (_currentAssembly != null)
            {
                Assemblies.Add(new AssemblyMock {
                    Name = _currentAssembly.Name, Types = _currentAssembly.Types
                });
            }

            _currentAssembly = new AssemblyMock {
                Name = name
            };
            return(this);
        }
Пример #2
0
 internal CoverageAssemblyBuilder(CoverageMockBuilder parent, AssemblyMock currentAssembly, TypeMock currentType)
 {
     ParentBuilder    = parent;
     _currentAssembly = currentAssembly;
     _currentType     = currentType;
 }