github
5136 of 7499 branches covered (68.49%)
Branch coverage included in aggregate %.
49 of 92 new or added lines in 9 files covered. (53.26%)
10 existing lines in 3 files now uncovered.20470 of 26372 relevant lines covered (77.62%)
36747.45 hits per line
| 1 |
using System; |
|
| 2 |
|
|
| 3 |
namespace ACadSharp.XData
|
|
| 4 |
{
|
|
| 5 |
public class ExtendedDataRecord |
|
| 6 |
{
|
|
| 7 |
public DxfCode Code
|
|
| 8 |
{
|
|
|
NEW
|
get { return this._code; }
|
× |
| 10 |
set |
|
|
|
{
|
79,150✔ |
|
|
if (value < DxfCode.ExtendedDataAsciiString)
|
|
|
NEW
|
{
|
× |
|
NEW
|
throw new ArgumentException($"Dxf code for ExtendedDataRecord is not valid: {value}", nameof(value)); |
× |
| 15 |
} |
|
| 16 |
|
|
|
|
this._code = value;
|
79,150✔ |
|
|
} |
79,150✔ |
| 19 |
} |
|
| 20 |
|
|
|
|
public object Value { get; set; }
|
79,150✔ |
| 22 |
|
|
| 23 |
private DxfCode _code;
|
|
| 24 |
|
|
|
|
public ExtendedDataRecord(DxfCode dxfCode, object value)
|
79,150✔ |
|
|
{
|
79,150✔ |
|
|
this.Code = dxfCode;
|
79,150✔ |
|
|
this.Value = value;
|
79,150✔ |
|
|
} |
79,150✔ |
| 30 |
} |
|
| 31 |
} |