Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@
<TestAssemblies Include="OneScript.DebugProtocol.Test" />
<TestAssemblies Include="OneScript.Dynamic.Tests" />
<TestAssemblies Include="OneScript.Language.Tests" />
<TestAssemblies Include="OneScript.StandardLibrary.Tests" />
<TestAssemblies Include="DocumenterTests" />
</ItemGroup>

<Exec
Expand Down
1 change: 1 addition & 0 deletions src/Tests/DocumenterTests/DocumenterTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0"/>
<PackageReference Include="JunitXml.TestLogger" Version="3.0.124" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="xunit" Version="2.5.3"/>
Expand Down
8 changes: 4 additions & 4 deletions src/Tests/DocumenterTests/MarkdownWriterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public void TestListIndentZeroIndent()

var result = stringWriter.ToString();

Assert.Equal("* One\r\n" +
Assert.Equal(("* One\r\n" +
"* Two\r\n" +
"* Three\r\n", result);
"* Three\r\n").ReplaceLineEndings(), result);

}

Expand All @@ -55,11 +55,11 @@ public void TestListIndentTwoLevelList()

var result = stringWriter.ToString();

Assert.Equal("* One\r\n" +
Assert.Equal(("* One\r\n" +
"* Two\r\n" +
" * Three\r\n" +
" * Four\r\n" +
"* Five\r\n", result);
"* Five\r\n").ReplaceLineEndings(), result);

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="JunitXml.TestLogger" Version="3.0.124" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0"/>
<PackageReference Include="xunit" Version="2.4.1"/>
<PackageReference Include="Moq" Version="4.14.5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class TimeZoneConverterTests
public void Kiev_Summer_Dst_ToUtc_And_Back()
{
var dtLocal = new DateTime(2025, 6, 24, 10, 0, 0);
var utc = TimeZoneConverter.ToUniversalTime(dtLocal, "Europe/Kiev");
var utc = TimeZoneConverter.ToUniversalTime(dtLocal, "FLE Standard Time");
utc.Should().Be(new DateTime(2025, 6, 24, 7, 0, 0, DateTimeKind.Utc));

var backLocal = TimeZoneConverter.ToLocalTime(utc, "Europe/Kiev");
var backLocal = TimeZoneConverter.ToLocalTime(utc, "FLE Standard Time");
backLocal.Should().Be(dtLocal);
}

Expand Down
Loading