6f5f044095
* compiles with relevant deletions * Test fixes * fix type loading * type load for tests * speckle objects renamespace * rename Core to Sdk * Fix test references * tests renaming * rename logging * fmt * start of adding an attribute to all base types * convert all types and do basic test * Fix most tests * fix more tests * fmt * Build fix * add changes and more tests * Fix tests * Fix integration tests
27 lines
661 B
C#
27 lines
661 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using Speckle.Objects.BuiltElements;
|
|
using Speckle.Objects.Geometry;
|
|
using Speckle.Sdk.Common;
|
|
|
|
namespace Objects.Tests.Unit.Utils;
|
|
|
|
[TestFixture]
|
|
public class ShallowCopyTests
|
|
{
|
|
[Test]
|
|
public void CanShallowCopy_Wall()
|
|
{
|
|
var wall = new Wall(5, new Line(new Point(0, 0), new Point(3, 0)))
|
|
{
|
|
units = Units.Meters,
|
|
displayValue = new List<Mesh> { new(), new() }
|
|
};
|
|
|
|
var shallow = wall.ShallowCopy();
|
|
var displayValue = (IList)shallow["displayValue"].NotNull();
|
|
Assert.That(wall.displayValue, Has.Count.EqualTo(displayValue.Count));
|
|
}
|
|
}
|