Skip to content

Commit ac218a2

Browse files
fixes unit tests and build errors
1 parent a1b3341 commit ac218a2

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

Src/BridgeVs.Build/SInjection.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,19 +288,13 @@ private ReaderParameters GetReaderParameters()
288288
ReaderParameters readerParameters = new ReaderParameters
289289
{
290290
AssemblyResolver = assemblyResolver,
291-
#if DEBUG
291+
#if TEST
292292
InMemory = true,
293293
#endif
294294
ReadingMode = ReadingMode.Immediate
295295
};
296-
297-
if (!File.Exists(PdbName))
298-
return readerParameters;
299-
300-
PdbReaderProvider symbolReaderProvider = new PdbReaderProvider();
301-
readerParameters.SymbolReaderProvider = symbolReaderProvider;
302-
303296
return readerParameters;
297+
//disables reading the symbols...
304298
}
305299

306300
private WriterParameters GetWriterParameters()

Src/BridgeVs.Locations/BridgeVs.Locations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<Optimize>false</Optimize>
2828
<DebugSymbols>true</DebugSymbols>
2929
<OutputPath>bin\Test\</OutputPath>
30-
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
<DefineConstants>TRACE;DEBUG;TEST</DefineConstants>
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>

Src/BridgeVs.Locations/CommonFolderPaths.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ public static string DefaultLinqPadQueryFolder
9797
{
9898
get
9999
{
100+
#if !TEST
100101
//I could cache the file here
101102
if (File.Exists(LinqPadCustomQueryFolderConfigurationFile))
102103
{
103104
string customQueryFolderPath = File.ReadLines(LinqPadCustomQueryFolderConfigurationFile).FirstOrDefault();
104105
if (!string.IsNullOrEmpty(customQueryFolderPath))
105106
return Path.Combine(customQueryFolderPath, "BridgeVs");
106107
}
107-
//
108+
#endif
108109
return Path.Combine(Documents, "LINQPad Queries", "BridgeVs");
109110
}
110111
}
@@ -113,13 +114,14 @@ public static string DefaultLinqPadPluginFolder
113114
{
114115
get
115116
{
117+
#if !TEST
116118
if (File.Exists(LinqPadCustomPluginFolderConfigurationFile))
117119
{
118120
string customPluginFolderPath = File.ReadLines(LinqPadCustomPluginFolderConfigurationFile).FirstOrDefault();
119121
if (!string.IsNullOrEmpty(customPluginFolderPath))
120122
return customPluginFolderPath;
121123
}
122-
124+
#endif
123125
return Path.Combine(Documents, "LINQPad Plugins");
124126
}
125127
}

Test/BridgeVs.DynamicVisualizers.Test/DynamicDebuggerVisualizerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void DeployLinqScriptTest()
7272
DynamicDebuggerVisualizer cVisualizerObjectSource = new DynamicDebuggerVisualizer(_fileSystem);
7373
cVisualizerObjectSource.DeployLinqScript(_message);
7474

75-
string dstScriptPath = CommonFolderPaths.LinqPadQueryFolder;
75+
string dstScriptPath = CommonFolderPaths.DefaultLinqPadQueryFolder;
7676

7777
string fileNamePath = Path.Combine(dstScriptPath, _message.AssemblyName, _message.FileName);
7878

0 commit comments

Comments
 (0)