bafd130ece
* snapshot testing with verify * formatting * add back old serialization tests * pass verify * use json correctly * formatting * Don't use Quibble and order ourselves because ordering doesn't matter * whitespace on snapshot * Better json diffing? Quibble is back * add common project * add object unit tests to see how verify would work * format * move random exes to new solution folder * update lock files
33 lines
741 B
C#
33 lines
741 B
C#
using Speckle.Objects.Geometry;
|
|
using Speckle.Sdk.Common;
|
|
|
|
namespace Speckle.Objects.Tests.Unit.Geometry;
|
|
|
|
public class BoxTests
|
|
{
|
|
private Plane TestPlane =>
|
|
new()
|
|
{
|
|
origin = new Point(0, 0, 0, Units.Meters),
|
|
normal = new Vector(0, 0, 1, Units.Meters),
|
|
xdir = new Vector(1, 0, 0, Units.Meters),
|
|
ydir = new Vector(0, 1, 0, Units.Meters),
|
|
units = Units.Meters,
|
|
};
|
|
|
|
[Fact]
|
|
public async Task CanCreateBox()
|
|
{
|
|
const string UNITS = Units.Meters;
|
|
var box = new Box()
|
|
{
|
|
plane = TestPlane,
|
|
xSize = new() { start = -1, end = 1 },
|
|
ySize = new() { start = -2, end = 2 },
|
|
zSize = new() { start = -3, end = 3 },
|
|
units = UNITS,
|
|
};
|
|
await Verify(box);
|
|
}
|
|
}
|