Skip to content

Commit b81321b

Browse files
committed
NH-2692 - Add KnownBug attribute
1 parent 4c074c2 commit b81321b

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using NUnit.Framework;
2+
3+
namespace NHibernate.Test
4+
{
5+
public class KnownBugAttribute : ExpectedExceptionAttribute
6+
{
7+
public KnownBugAttribute()
8+
{
9+
UserMessage = "Known bug";
10+
}
11+
12+
public KnownBugAttribute(System.Type exceptionType) : base(exceptionType)
13+
{
14+
UserMessage = "Known bug";
15+
}
16+
17+
public KnownBugAttribute(string exceptionName) : base(exceptionName)
18+
{
19+
UserMessage = "Known bug";
20+
}
21+
}
22+
}

src/NHibernate.Test/NHSpecificTest/NH2692/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void QueryingParentWhichHasChildren()
2121
}
2222
}
2323

24-
[Test]
24+
[Test, KnownBug]
2525
public void QueryingChildrenComponents()
2626
{
2727
using (var session = OpenSession())
@@ -35,7 +35,7 @@ public void QueryingChildrenComponents()
3535
}
3636
}
3737

38-
[Test]
38+
[Test, KnownBug]
3939
public void QueryingChildrenComponentsHql()
4040
{
4141
using (var session = OpenSession())

src/NHibernate.Test/NHibernate.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@
492492
<Compile Include="Insertordering\InsertOrderingFixture.cs" />
493493
<Compile Include="Insertordering\Membership.cs" />
494494
<Compile Include="Insertordering\User.cs" />
495+
<Compile Include="KnownBugAttribute.cs" />
495496
<Compile Include="LazyOneToOne\Employee.cs" />
496497
<Compile Include="LazyOneToOne\Employment.cs" />
497498
<Compile Include="LazyOneToOne\LazyOneToOneTest.cs" />

0 commit comments

Comments
 (0)