Skip to content

Commit 1afa75c

Browse files
author
Vyacheslav
committed
feat: test - use ignoreattribute: check ignored a property is
1 parent 6667ce4 commit 1afa75c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Src/Tests/HelpStruct.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using StackMemoryAttributes.Attributes;
22
using StackMemoryCollections.Attibutes;
3+
using System.Collections.Generic;
34

45
namespace Tests
56
{
@@ -73,5 +74,8 @@ HelpStruct2 helpStruct2
7374
public int Int32 { get; set; }
7475

7576
public HelpStruct2 HelpStruct2 { get; set; }
77+
78+
[GeneratorIgnore]
79+
public Dictionary<int, string> Dictionary { get; set; }
7680
}
7781
}

Src/Tests/StackOfTestStructFixture.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using StackMemoryAttributes.Attributes;
33
using StackMemoryCollections.Attibutes;
44
using System;
5+
using System.Collections.Generic;
56
using System.Runtime.CompilerServices;
67

78
namespace Tests
@@ -49,6 +50,9 @@ long int64
4950

5051
public long Int64;
5152
public int Int32;
53+
54+
[GeneratorIgnore]
55+
public Dictionary<int, string> Dictionary { get; set; }
5256
}
5357

5458
[TestFixture]

0 commit comments

Comments
 (0)