Skip to content

Commit 02d6ac0

Browse files
committed
* failing pipeline
1 parent 58fe5c1 commit 02d6ac0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

code/test/CoreTemplateStudio.Core.Test/Helpers/FileHelpersTests.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ public void GetFileContent_WrongFilePath_ShouldReturnEmpty(string file)
3636
Assert.Empty(actual);
3737
}
3838

39+
[Fact]
40+
public void GetFileContent_FileExists_ShouldReturnsCorrectly()
41+
{
42+
var sourceFile = Path.Combine(Environment.CurrentDirectory, "TestData\\TestProject\\Test.csproj");
43+
44+
var actual = FileHelper.GetFileContent(sourceFile);
45+
46+
Assert.NotEmpty(actual);
47+
}
48+
3949
[Fact]
4050
public void GetFileContent_WithFileOpened_ShouldReturnEmpty()
4151
{
@@ -50,14 +60,5 @@ public void GetFileContent_WithFileOpened_ShouldReturnEmpty()
5060
}
5161
}
5262

53-
[Fact]
54-
public void GetFileContent_FileExists_ShouldReturnsCorrectly()
55-
{
56-
var sourceFile = Path.Combine(Environment.CurrentDirectory, "TestData\\TestProject\\Test.csproj");
57-
58-
var actual = FileHelper.GetFileContent(sourceFile);
59-
60-
Assert.NotEmpty(actual);
61-
}
6263
}
6364
}

0 commit comments

Comments
 (0)