File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
code/test/CoreTemplateStudio.Core.Test/Helpers Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments