提交 8ef9f800 编写于 作者: T Tomas Matousek

Enable skipped tests

上级 fd448fee
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
extern alias PortableTestUtils;
using System;
using System.Reflection;
using Roslyn.Test.Utilities;
using Roslyn.Utilities;
using Xunit;
using TestBase = PortableTestUtils::Roslyn.Test.Utilities.TestBase;
using AssertEx = PortableTestUtils::Roslyn.Test.Utilities.AssertEx;
using TestBase = PortableTestUtils::Roslyn.Test.Utilities.TestBase;
namespace Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests
{
public class CsiTests : TestBase
{
private string CsiPath => typeof(Csi).Assembly.Location;
private static readonly string CompilerVersion = typeof(Csi).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
private string CsiPath => typeof(Csi).GetTypeInfo().Assembly.Location;
/// <summary>
/// csi should use the current working directory of its environment to resolve relative paths specified on command line.
......@@ -29,7 +31,7 @@ public void CurrentWorkingDirectory1()
Assert.False(result.ContainsErrors);
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/6523")]
[Fact]
public void CurrentWorkingDirectory_Change()
{
var dir = Temp.CreateDirectory();
......@@ -47,15 +49,15 @@ public void CurrentWorkingDirectory_Change()
Environment.Exit(0)
");
AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
Microsoft (R) Visual C# Interactive Compiler version 42.42.42.42
AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
Microsoft (R) Visual C# Interactive Compiler version {CompilerVersion}
Copyright (C) Microsoft Corporation. All rights reserved.
Type ""#help"" for more information.
> (1,7): error CS1504: Source file 'a.csx' could not be opened -- Could not find file.
> (1,1): error CS0006: Metadata file 'C.dll' could not be found
> > > > 1
> C { }
> C {{ }}
>
", result.Output);
......
......@@ -458,7 +458,7 @@ public void ReferenceSearchPaths1()
", runner.Console.Out.ToString());
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/6523")]
[Fact]
public void SourceSearchPaths_Change1()
{
var dir = Temp.CreateDirectory();
......@@ -475,7 +475,7 @@ public void SourceSearchPaths_Change1()
runner.RunInteractive();
AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
Microsoft (R) Visual C# Interactive Compiler version 42.42.42.42
Microsoft (R) Visual C# Interactive Compiler version {CompilerVersion}
Copyright (C) Microsoft Corporation. All rights reserved.
Type ""#help"" for more information.
......@@ -493,7 +493,7 @@ > X
", runner.Console.Out.ToString());
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/6523")]
[Fact]
public void ReferenceSearchPaths_Change1()
{
var dir = Temp.CreateDirectory();
......@@ -510,7 +510,7 @@ public void ReferenceSearchPaths_Change1()
runner.RunInteractive();
AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
Microsoft (R) Visual C# Interactive Compiler version 42.42.42.42
Microsoft (R) Visual C# Interactive Compiler version {CompilerVersion}
Copyright (C) Microsoft Corporation. All rights reserved.
Type ""#help"" for more information.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册