@@ -117,3 +117,67 @@ class TestCaseSourceAttribute extends Attribute {
117117 result .getName ( ) = this .getFieldName ( )
118118 }
119119}
120+
121+ /** The `NUnit.Framework.Assert` class. */
122+ class NUnitAssertClass extends Class {
123+ NUnitAssertClass ( ) { this .hasQualifiedName ( "NUnit.Framework.Assert" ) }
124+
125+ /** Gets a `Null(object, ...)` method. */
126+ Method getANullMethod ( ) {
127+ result .getDeclaringType ( ) = this and
128+ result .hasName ( "Null" )
129+ }
130+
131+ /** Gets an `IsNull(object, ...)` method. */
132+ Method getAnIsNullMethod ( ) {
133+ result .getDeclaringType ( ) = this and
134+ result .hasName ( "IsNull" )
135+ }
136+
137+ /** Gets a `NotNull(object, ...)` method. */
138+ Method getANotNullMethod ( ) {
139+ result .getDeclaringType ( ) = this and
140+ result .hasName ( "NotNull" )
141+ }
142+
143+ /** Gets an `IsNotNull(object, ...)` method. */
144+ Method getAnIsNotNullMethod ( ) {
145+ result .getDeclaringType ( ) = this and
146+ result .hasName ( "IsNotNull" )
147+ }
148+
149+ /** Gets a `True(bool, ...)` method. */
150+ Method getATrueMethod ( ) {
151+ result .getDeclaringType ( ) = this and
152+ result .hasName ( "True" )
153+ }
154+
155+ /** Gets an `IsTrue(bool, ...)` method. */
156+ Method getAnIsTrueMethod ( ) {
157+ result .getDeclaringType ( ) = this and
158+ result .hasName ( "IsTrue" )
159+ }
160+
161+ /** Gets a `False(bool, ...)` method. */
162+ Method getAFalseMethod ( ) {
163+ result .getDeclaringType ( ) = this and
164+ result .hasName ( "False" )
165+ }
166+
167+ /** Gets an `IsFalse(bool, ...)` method. */
168+ Method getAnIsFalseMethod ( ) {
169+ result .getDeclaringType ( ) = this and
170+ result .hasName ( "IsFalse" )
171+ }
172+
173+ /** Gets a `That(...)` method. */
174+ Method getAThatMethod ( ) {
175+ result .getDeclaringType ( ) = this and
176+ result .hasName ( "That" )
177+ }
178+ }
179+
180+ /** The `NUnit.Framework.AssertionException` class. */
181+ class AssertionExceptionClass extends Class {
182+ AssertionExceptionClass ( ) { this .hasQualifiedName ( "NUnit.Framework.AssertionException" ) }
183+ }
0 commit comments