File tree Expand file tree Collapse file tree 5 files changed +24
-2
lines changed
Expand file tree Collapse file tree 5 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1010 <!-- directory locations -->
1111 <PropertyGroup >
1212 <FSharpSourcesRoot >$(RepoRoot)src</FSharpSourcesRoot >
13+ <FSharpTestsRoot >$(RepoRoot)tests</FSharpTestsRoot >
1314 <SymStoreDirectory >$(ArtifactsDir)\SymStore</SymStoreDirectory >
1415 <ProtoOutputPath >$(ArtifactsDir)\Bootstrap</ProtoOutputPath >
1516 <ValueTupleImplicitPackageVersion >4.4.0</ValueTupleImplicitPackageVersion >
Original file line number Diff line number Diff line change 187187 <StrawberryPerlVersion >5.28.0.1</StrawberryPerlVersion >
188188 <StreamJsonRpcVersion >2.0.187</StreamJsonRpcVersion >
189189 <XUnitVersion >2.4.1</XUnitVersion >
190- <FluentAssertionsVersion >2.4.1 </FluentAssertionsVersion >
190+ <FluentAssertionsVersion >5.10.3 </FluentAssertionsVersion >
191191 </PropertyGroup >
192192</Project >
Original file line number Diff line number Diff line change 99 <PackageReference Include =" NunitXml.TestLogger" Version =" $(NunitXmlTestLoggerVersion)" />
1010 </ItemGroup >
1111 <ItemGroup Condition =" '$(UnitTestType)' == 'xunit'" >
12- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" $(MicrosoftNETTestSdkVersion)" />
12+ <!-- < PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" /> -- >
1313 <PackageReference Include =" xunit" Version =" $(XUnitVersion)" />
1414 <PackageReference Include =" xunit.runner.visualstudio" Version =" $(XUnitVersion)" />
1515 <PackageReference Include =" NunitXml.TestLogger" Version =" $(NunitXmlTestLoggerVersion)" />
Original file line number Diff line number Diff line change 1+ namespace FSharp.Test.Utilities
2+
3+ module Assert =
4+ open FluentAssertions
5+ open System.Collections
6+
7+ let inline shouldBe ( expected : ^T ) ( actual : ^U ) =
8+ actual.Should() .Be( expected, " " ) |> ignore
9+
10+ let inline shouldBeEmpty ( actual : ^T when ^T :> IEnumerable ) =
11+ actual.Should() .BeEmpty( " " ) |> ignore
12+
13+ let inline shouldNotBeEmpty ( actual : ^T when ^T :> IEnumerable ) =
14+ actual.Should() .NotBeEmpty( " " ) |> ignore
15+
16+ let shouldBeFalse ( actual : bool ) =
17+ actual.Should() .BeFalse( " " ) |> ignore
18+
19+ let shouldBeTrue ( actual : bool ) =
20+ actual.Should() .BeTrue( " " ) |> ignore
Original file line number Diff line number Diff line change 2121 <Compile Include =" ILChecker.fs" />
2222 <Compile Include =" Utilities.fs" />
2323 <Compile Include =" CompilerAssert.fs" />
24+ <Compile Include =" Assert.fs" />
2425 </ItemGroup >
2526
2627 <ItemGroup >
You can’t perform that action at this time.
0 commit comments