@@ -21,7 +21,8 @@ public class ReleaseNotesBuilderTests
21
21
[ Test ]
22
22
public void NoCommitsNoIssues ( )
23
23
{
24
- Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 0 ) ) ;
24
+ var exception = Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 0 ) ) ;
25
+ Assert . That ( exception . InnerException , Is . Not . Null . And . TypeOf < InvalidOperationException > ( ) ) ;
25
26
}
26
27
27
28
[ Test ]
@@ -34,7 +35,8 @@ public void NoCommitsSomeIssues()
34
35
[ Test ]
35
36
public void SomeCommitsNoIssues ( )
36
37
{
37
- Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 5 ) ) ;
38
+ var exception = Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 5 ) ) ;
39
+ Assert . That ( exception . InnerException , Is . Not . Null . And . TypeOf < InvalidOperationException > ( ) ) ;
38
40
}
39
41
40
42
[ Test ]
@@ -47,7 +49,8 @@ public void SomeCommitsSomeIssues()
47
49
[ Test ]
48
50
public void SingularCommitsNoIssues ( )
49
51
{
50
- Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 1 ) ) ;
52
+ var exception = Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 1 ) ) ;
53
+ Assert . That ( exception . InnerException , Is . Not . Null . And . TypeOf < InvalidOperationException > ( ) ) ;
51
54
}
52
55
53
56
[ Test ]
@@ -116,13 +119,15 @@ public void SomeCommitsWithoutPluralizedLabelAlias()
116
119
[ Test ]
117
120
public void NoCommitsWrongIssueLabel ( )
118
121
{
119
- Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 0 , CreateIssue ( 1 , "Test" ) ) ) ;
122
+ var exception = Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 0 , CreateIssue ( 1 , "Test" ) ) ) ;
123
+ Assert . That ( exception . InnerException , Is . Not . Null . And . TypeOf < InvalidOperationException > ( ) ) ;
120
124
}
121
125
122
126
[ Test ]
123
127
public void SomeCommitsWrongIssueLabel ( )
124
128
{
125
- Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 5 , CreateIssue ( 1 , "Test" ) ) ) ;
129
+ var exception = Assert . Throws < AggregateException > ( ( ) => AcceptTest ( 5 , CreateIssue ( 1 , "Test" ) ) ) ;
130
+ Assert . That ( exception . InnerException , Is . Not . Null . And . TypeOf < InvalidOperationException > ( ) ) ;
126
131
}
127
132
128
133
[ Test ]
0 commit comments