public void CanFindAndLoadProviderForPdbFile()
        {
            var commandLine  = new Mock <ICommandLine>();
            var assemblyPath = typeof(Microsoft.Practices.ServiceLocation.ServiceLocator).Assembly.Location;

            var symbolFile = SymbolFileHelper.FindSymbolFolder(assemblyPath, commandLine.Object);

            Assert.NotNull(symbolFile);
            Assert.IsInstanceOf <PdbReaderProvider>(symbolFile.SymbolReaderProvider);
            Assert.IsTrue(symbolFile.SymbolFilename.EndsWith(".pdb", StringComparison.InvariantCultureIgnoreCase));
        }
예제 #2
0
        public void CanFindAndLoadProviderForPdbFile()
        {
            var commandLine  = new Mock <ICommandLine>();
            var assemblyPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Unity.ServiceLocation.dll");

            var symbolFile = SymbolFileHelper.FindSymbolFolder(assemblyPath, commandLine.Object);

            Assert.NotNull(symbolFile);
            Assert.IsInstanceOf <PortablePdbReaderProvider>(symbolFile.SymbolReaderProvider);
            Assert.IsTrue(symbolFile.SymbolFilename.EndsWith(".pdb", StringComparison.InvariantCultureIgnoreCase));
        }
예제 #3
0
        public void CanFindAndLoadProviderForMdbFile()
        {
            var commandLine  = new Mock <ICommandLine>();
            var assemblyPath = Path.GetDirectoryName(TargetType.Assembly.Location);
            var location     = Path.Combine(assemblyPath, "Mdb", TargetAssembly);

            var symbolFile = SymbolFileHelper.FindSymbolFolder(location, commandLine.Object);

            Assert.NotNull(symbolFile);
            Assert.IsInstanceOf <MdbReaderProvider>(symbolFile.SymbolReaderProvider);
            Assert.IsTrue(symbolFile.SymbolFilename.EndsWith(".dll.mdb", StringComparison.InvariantCultureIgnoreCase));
        }