-
Notifications
You must be signed in to change notification settings - Fork 4
WI00856225 - Remove FluentAssertions from Blazor.Diagrams.Core.Tests #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
bc2460f
a612d8e
9e6de23
4cb77de
8c78a73
127de65
fa84318
28efa7f
8abb74b
0930307
f69d9b0
b9f5f8f
164f32e
c2988d9
e0a8cd8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,11 +20,9 @@ | |
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.AspNetCore.Components" /> | ||
| <PackageReference Include="Microsoft.AspNetCore.Components.Web" /> | ||
| <PacakgeReference Include="Brutal.Dev.StrongNameSigner" PrivateAssets="All" /> | ||
| <PackageReference Include="Brutal.Dev.StrongNameSigner" PrivateAssets="All" /> | ||
| <!-- Reference the SvgPathProperties that we already strong name signed --> | ||
| <Reference Include="SvgPathProperties" PrivateAssets="All"> | ||
| <HintPath>..\..\packages\svgpathproperties\1.1.2\lib\netstandard2.0\SvgPathProperties.dll</HintPath> | ||
| </Reference> | ||
| <PackageReference Include="SvgPathProperties" PrivateAssets="All" /> | ||
|
||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||
| using Blazor.Diagrams.Core.Anchors; | ||||||
| using Blazor.Diagrams.Core.Geometry; | ||||||
| using Blazor.Diagrams.Core.Models; | ||||||
| using FluentAssertions; | ||||||
| using Moq; | ||||||
| using Xunit; | ||||||
|
|
||||||
|
|
@@ -26,8 +25,8 @@ public void GetPlainPosition_ShouldReturnMiddlePosition() | |||||
|
|
||||||
| // Assert | ||||||
| var mp = port.MiddlePosition; | ||||||
| position.X.Should().Be(mp.X); | ||||||
| position.Y.Should().Be(mp.Y); | ||||||
| Assert.Equal(mp.X, position.X); | ||||||
| Assert.Equal(mp.Y, position.Y); | ||||||
| } | ||||||
|
|
||||||
| [Fact] | ||||||
|
|
@@ -47,7 +46,7 @@ public void GetPosition_ShouldReturnNull_WhenPortNotInitialized() | |||||
| var position = anchor.GetPosition(link); | ||||||
|
|
||||||
| // Assert | ||||||
| position.Should().BeNull(); | ||||||
| Assert.Null(position); | ||||||
| } | ||||||
|
|
||||||
| [Fact] | ||||||
|
|
@@ -72,8 +71,8 @@ public void GetPosition_ShouldReturnMiddlePosition_WhenMiddleIfNoMarker() | |||||
|
|
||||||
| // Assert | ||||||
| var mp = port.MiddlePosition; | ||||||
| position.X.Should().Be(mp.X); | ||||||
| position.Y.Should().Be(mp.Y); | ||||||
| Assert.Equal(mp.X, position.X); | ||||||
| Assert.Equal(mp.Y, position.Y); | ||||||
| } | ||||||
|
|
||||||
| [Theory] | ||||||
|
|
@@ -106,8 +105,8 @@ public void GetPosition_ShouldReturnAlignmentBasedPosition_WhenUseShapeAndAlignm | |||||
| var position = anchor.GetPosition(link)!; | ||||||
|
|
||||||
| // Assert | ||||||
| position.X.Should().Be(x); | ||||||
| position.Y.Should().Be(y); | ||||||
| Assert.Equal(x, position.X); | ||||||
| Assert.Equal(y, position.Y); | ||||||
|
||||||
| Assert.Equal(y, position.Y); | |
| Assert.Equal(y, position.Y); |
Removing trailing spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very minor, but could we fix the spacing here ?