File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed
Helpers/Testably.Abstractions.TestHelpers
Testably.Abstractions.Testing.Tests
Testably.Abstractions.Tests Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 4747 <PackageVersion Include =" NUnit3TestAdapter" Version =" 6.1.0" />
4848 </ItemGroup >
4949 <ItemGroup >
50- <PackageVersion Include =" Testably.Abstractions.Interface" Version =" 10.0.0 " />
51- <PackageVersion Include =" Testably.Abstractions" Version =" 10.0.0 " />
50+ <PackageVersion Include =" Testably.Abstractions.Interface" Version =" 10.1.0-rc1 " />
51+ <PackageVersion Include =" Testably.Abstractions" Version =" 10.1.0-rc1 " />
5252 <PackageVersion Include =" Testably.Abstractions.Testing" Version =" 5.0.3" />
5353 </ItemGroup >
5454 <ItemGroup >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ partial class Build : NukeBuild
2020 /// <para />
2121 /// Afterward, you can update the package reference in `Directory.Packages.props` and reset this flag.
2222 /// </summary>
23- readonly BuildScope BuildScope = BuildScope . CoreOnly ;
23+ readonly BuildScope BuildScope = BuildScope . Default ;
2424
2525 [ Parameter ( "Configuration to build - Default is 'Debug' (local) or 'Release' (server)" ) ]
2626 readonly Configuration Configuration = IsLocalBuild ? Configuration . Debug : Configuration . Release ;
Original file line number Diff line number Diff line change 66 <OutputType >Library</OutputType >
77 </PropertyGroup >
88
9- <ItemGroup >
10- <ProjectReference Include =" ..\..\..\Source\Testably.Abstractions\Testably.Abstractions.csproj" />
11- </ItemGroup >
12-
139 <ItemGroup Condition =" '$(Configuration)' != 'Debug' " >
1410 <PackageReference Include =" Testably.Abstractions.Interface" />
1511 </ItemGroup >
Original file line number Diff line number Diff line change 1414
1515 <ItemGroup >
1616 <ProjectReference Include =" ..\..\Source\Testably.Abstractions.Testing\Testably.Abstractions.Testing.csproj" />
17- <ProjectReference Include =" ..\..\Source\Testably.Abstractions\Testably.Abstractions.csproj" />
1817 <ProjectReference Include =" ..\Helpers\Testably.Abstractions.TestHelpers\Testably.Abstractions.TestHelpers.csproj" />
1918 </ItemGroup >
2019
2120 <ItemGroup Condition =" '$(Configuration)' != 'Debug' " >
21+ <PackageReference Include =" Testably.Abstractions" />
2222 <PackageReference Include =" Testably.Abstractions.Interface" />
2323 </ItemGroup >
2424
2525 <ItemGroup Condition =" '$(Configuration)' == 'Debug' " >
26+ <ProjectReference Include =" ..\..\Source\Testably.Abstractions\Testably.Abstractions.csproj" />
2627 <ProjectReference Include =" ..\..\Source\Testably.Abstractions.Interface\Testably.Abstractions.Interface.csproj" />
2728 </ItemGroup >
2829
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <ItemGroup >
4- <ProjectReference Include =" ..\..\Source\Testably.Abstractions\Testably.Abstractions.csproj" />
54 <ProjectReference Include =" ..\..\Source\Testably.Abstractions.Testing\Testably.Abstractions.Testing.csproj" />
65 <ProjectReference Include =" ..\Helpers\Testably.Abstractions.TestHelpers\Testably.Abstractions.TestHelpers.csproj" />
76 <ProjectReference Include =" ..\Helpers\Testably.Abstractions.Tests.SourceGenerator\Testably.Abstractions.Tests.SourceGenerator.csproj" OutputItemType =" Analyzer" />
87 </ItemGroup >
98
109 <ItemGroup Condition =" '$(Configuration)' != 'Debug' " >
10+ <PackageReference Include =" Testably.Abstractions" />
1111 <PackageReference Include =" Testably.Abstractions.Interface" />
1212 </ItemGroup >
1313
1414 <ItemGroup Condition =" '$(Configuration)' == 'Debug' " >
15+ <ProjectReference Include =" ..\..\Source\Testably.Abstractions\Testably.Abstractions.csproj" />
1516 <ProjectReference Include =" ..\..\Source\Testably.Abstractions.Interface\Testably.Abstractions.Interface.csproj" />
1617 </ItemGroup >
1718
Original file line number Diff line number Diff line change 11using System . Diagnostics ;
2+ using Testably . Abstractions . TimeSystem ;
23
34namespace Testably . Abstractions . Tests . TimeSystem ;
45
56[ TimeSystemTests ]
6- public class StopwatchFactoryTests
7+ public partial class StopwatchFactoryTests
78{
89 [ Fact ]
910 public async Task Frequency_ShouldReturnValueOfAtLeastTicksPerSecond ( )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public async Task ElapsedMilliseconds_ShouldBeEqualToElapsed()
5454 TimeSpan elapsed = stopwatch . Elapsed ;
5555 long elapsedMilliseconds = stopwatch . ElapsedMilliseconds ;
5656
57- await That ( elapsedMilliseconds ) . IsEqualTo ( elapsed . TotalMilliseconds ) ;
57+ await That ( elapsedMilliseconds ) . IsEqualTo ( ( long ) elapsed . TotalMilliseconds ) . Within ( 1L ) ;
5858 }
5959
6060 [ Fact ]
You can’t perform that action at this time.
0 commit comments