Skip to content

Commit

Permalink
Fix paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Nov 2, 2024
1 parent 60a087d commit 87d7ac1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/SharpScss.Tests/TestScss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public class TestScss
{
public TestScss()
{
// Make sure the CurrentDirectory is the same as this assembly (JetBrain Resharper Unittest bug in 10.x???)
Environment.CurrentDirectory = Path.GetDirectoryName(typeof(TestScss).Assembly.Location);

// Custom loading of native library
//string arch;
//switch (System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture)
Expand Down Expand Up @@ -171,8 +168,8 @@ public void TestConvertFileToCssWithIncludes()
Assert.IsNull(result.SourceMap);
Assert.IsNotNull(result.IncludedFiles);
Assert.AreEqual(2, result.IncludedFiles.Count);
Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, @"files\test.scss"), new FileInfo(result.IncludedFiles[0]).FullName);
Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, @"files\subfolder\foo.scss"), new FileInfo(result.IncludedFiles[1]).FullName);
Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, "files", "test.scss"), new FileInfo(result.IncludedFiles[0]).FullName);
Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, "files", "subfolder", "foo.scss"), new FileInfo(result.IncludedFiles[1]).FullName);
var css = result.Css.Trim();
Assert.AreEqual("div{color:#FFF}", css);
}
Expand Down

0 comments on commit 87d7ac1

Please sign in to comment.