From 04de3492c55f4c424b422930a65d889aceda4be5 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 3 Jul 2024 11:58:33 +0100 Subject: [PATCH] fmt --- .../ModelCurveArrayToSpeckleConverterTests.cs | 8 ++++---- .../ArcToSpeckleConverterTests.cs | 3 +-- .../EllipseToSpeckleConverterTests.cs | 3 +-- .../ToSpeckle/Raw/ArcToSpeckleConverter.cs | 4 +++- DUI3-DX/Sdk/Speckle.Testing/MoqTest.cs | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/DUI3-DX/Converters/Revit/Speckle.Converters.Revit2023.Tests/ModelCurveArrayToSpeckleConverterTests.cs b/DUI3-DX/Converters/Revit/Speckle.Converters.Revit2023.Tests/ModelCurveArrayToSpeckleConverterTests.cs index fe88658273..bed2288646 100644 --- a/DUI3-DX/Converters/Revit/Speckle.Converters.Revit2023.Tests/ModelCurveArrayToSpeckleConverterTests.cs +++ b/DUI3-DX/Converters/Revit/Speckle.Converters.Revit2023.Tests/ModelCurveArrayToSpeckleConverterTests.cs @@ -10,7 +10,7 @@ namespace Speckle.Converters.Revit2023.Tests; -public class ModelCurveArrayToSpeckleConverterTests: MoqTest +public class ModelCurveArrayToSpeckleConverterTests : MoqTest { [Test] public void Convert_Empty() @@ -18,7 +18,7 @@ public void Convert_Empty() var revitConversionContextStack = Create(); var scalingServiceToSpeckle = Create(); var curveConverter = Create>(); - + var sut = new ModelCurveArrayToSpeckleConverter( revitConversionContextStack.Object, scalingServiceToSpeckle.Object, @@ -51,13 +51,13 @@ public void Convert() geometry2.Setup(x => x.GetEndPoint(1)).Returns(endpoint2.Object); var context = Create>(); - revitConversionContextStack.Setup(x => x.Current).Returns(context.Object); + revitConversionContextStack.Setup(x => x.Current).Returns(context.Object); var units = "units"; context.Setup(x => x.SpeckleUnits).Returns(units); var scaleLength = 2.2; - scalingServiceToSpeckle.Setup(x => x.ScaleLength(2 + 3)).Returns(scaleLength); + scalingServiceToSpeckle.Setup(x => x.ScaleLength(2 + 3)).Returns(scaleLength); endpoint1.Setup(x => x.DistanceTo(endpoint2.Object)).Returns(4.4); diff --git a/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/ArcToSpeckleConverterTests.cs b/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/ArcToSpeckleConverterTests.cs index e54a27b927..6d79b7e0e8 100644 --- a/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/ArcToSpeckleConverterTests.cs +++ b/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/ArcToSpeckleConverterTests.cs @@ -22,7 +22,6 @@ public void Convert_ShouldConvertArcCorrectly() var mockContextStack = Create>(); var factory = Create(); - var context = Create>(); context.Setup(x => x.SpeckleUnits).Returns("units"); mockContextStack.Setup(cs => cs.Current).Returns(context.Object); @@ -44,7 +43,7 @@ public void Convert_ShouldConvertArcCorrectly() targetArc.Setup(x => x.EndPoint).Returns(point3d.Object); targetArc.Setup(x => x.BoundingBox()).Returns(boundbox.Object); factory.Setup(x => x.Create(boundbox.Object)).Returns(targetBox.Object); - + mockPlaneConverter.Setup(pc => pc.Convert(targetPlane.Object)).Returns(new SOG.Plane()); mockPointConverter.Setup(pc => pc.Convert(It.IsAny())).Returns(new SOG.Point()); mockBoxConverter.Setup(bc => bc.Convert(targetBox.Object)).Returns(new SOG.Box()); diff --git a/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/EllipseToSpeckleConverterTests.cs b/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/EllipseToSpeckleConverterTests.cs index b3e2e32a76..e4019d32b2 100644 --- a/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/EllipseToSpeckleConverterTests.cs +++ b/DUI3-DX/Converters/Rhino/Speckle.Converters.Rhino7.Tests/EllipseToSpeckleConverterTests.cs @@ -7,9 +7,8 @@ namespace Speckle.Converters.Rhino7.Tests; -public class EllipseToSpeckleConverterTests: MoqTest +public class EllipseToSpeckleConverterTests : MoqTest { - [Test] public void Convert_Test() { diff --git a/DUI3-DX/Converters/Rhino/Speckle.Converters.RhinoShared/ToSpeckle/Raw/ArcToSpeckleConverter.cs b/DUI3-DX/Converters/Rhino/Speckle.Converters.RhinoShared/ToSpeckle/Raw/ArcToSpeckleConverter.cs index 34a6f4022b..f9480ab048 100644 --- a/DUI3-DX/Converters/Rhino/Speckle.Converters.RhinoShared/ToSpeckle/Raw/ArcToSpeckleConverter.cs +++ b/DUI3-DX/Converters/Rhino/Speckle.Converters.RhinoShared/ToSpeckle/Raw/ArcToSpeckleConverter.cs @@ -16,7 +16,9 @@ public ArcToSpeckleConverter( ITypedConverter pointConverter, ITypedConverter planeConverter, ITypedConverter boxConverter, - IConversionContextStack contextStack, IBoxFactory boxFactory) + IConversionContextStack contextStack, + IBoxFactory boxFactory + ) { _pointConverter = pointConverter; _planeConverter = planeConverter; diff --git a/DUI3-DX/Sdk/Speckle.Testing/MoqTest.cs b/DUI3-DX/Sdk/Speckle.Testing/MoqTest.cs index dd2a8e591d..0e697e14c5 100644 --- a/DUI3-DX/Sdk/Speckle.Testing/MoqTest.cs +++ b/DUI3-DX/Sdk/Speckle.Testing/MoqTest.cs @@ -5,14 +5,14 @@ namespace Speckle.Testing; public abstract class MoqTest { - [SetUp] public void Setup() => Repository = new(MockBehavior.Strict); [TearDown] public void Verify() => Repository.VerifyAll(); - protected MockRepository Repository { get; private set; } =new(MockBehavior.Strict); + protected MockRepository Repository { get; private set; } = new(MockBehavior.Strict); - protected Mock Create() where T : class => Repository.Create(); + protected Mock Create() + where T : class => Repository.Create(); }