Skip to content

Commit

Permalink
DxfProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Aug 14, 2024
1 parent 62f2865 commit 3f69011
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ACadSharp.Tests/DxfPropertyTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
using ACadSharp.Entities;
using CSMath;
using System;
using System.Reflection;
using Xunit;

namespace ACadSharp.Tests
{
public class DxfPropertyTests
{
[Fact]
public void Constructor()
{
DxfClassMap map = DxfClassMap.Create<Line>();
PropertyInfo dxfProp = typeof(Line).GetProperty(nameof(Line.StartPoint));
PropertyInfo info = typeof(Line).GetProperty(nameof(Line.SubclassMarker));

Assert.Throws<ArgumentException>(() => new DxfProperty(-7, dxfProp));
Assert.Throws<ArgumentException>(() => new DxfProperty(-7, info));
Assert.Throws<ArgumentNullException>(() => new DxfProperty(-7, null));
}

[Fact]
public void SetXYValueTest()
{
Expand Down

0 comments on commit 3f69011

Please sign in to comment.