Skip to content

Commit 4e61394

Browse files
committed
fix test with mscorlib instead System.Runtime
1 parent c727030 commit 4e61394

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

tests/service/Common.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,10 @@ let rec allSymbolsInEntities compGen (entities: IList<FSharpEntity>) =
237237
yield! allSymbolsInEntities compGen e.NestedEntities ]
238238

239239

240+
let coreLibAssemblyName =
241+
#if DOTNETCORE
242+
"System.Runtime"
243+
#else
244+
"mscorlib"
245+
#endif
240246

tests/service/EditorTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ let ``Symbols many tests`` () =
234234

235235
let typeCheckContext = typeCheckResults2.ProjectContext
236236

237-
typeCheckContext.GetReferencedAssemblies() |> List.exists (fun s -> s.FileName.Value.Contains("mscorlib")) |> shouldEqual true
237+
typeCheckContext.GetReferencedAssemblies() |> List.exists (fun s -> s.FileName.Value.Contains(coreLibAssemblyName)) |> shouldEqual true
238238

239239

240240
let input3 =

tests/service/ProjectAnalysisTests.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,11 +3141,7 @@ let ``Test Project22 IList properties`` () =
31413141

31423142
attribsOfSymbol ilistTypeDefn |> shouldEqual ["interface"]
31433143

3144-
#if DOTNETCORE
3145-
ilistTypeDefn.Assembly.SimpleName |> shouldEqual "System.Runtime"
3146-
#else
3147-
ilistTypeDefn.Assembly.SimpleName |> shouldEqual "mscorlib"
3148-
#endif
3144+
ilistTypeDefn.Assembly.SimpleName |> shouldEqual coreLibAssemblyName
31493145

31503146
//-----------------------------------------------------------------------------------------
31513147
// Misc - properties

0 commit comments

Comments
 (0)