@@ -177,5 +177,33 @@ public void Verify_that_QueryIsContainment_returns_expected_result()
177177
178178 Assert . That ( minutesStructuralFeature . QueryIsContainment , Is . False ) ;
179179 }
180+
181+ [ Test ]
182+ public void Verify_that_QueryTypeName_returns_expected_results ( )
183+ {
184+ var ingredientClass = this . rootPackage . EClassifiers . OfType < EClass > ( ) . Single ( x => x . Name == "Ingredient" ) ;
185+ var amountStructuralFeature = ingredientClass . EStructuralFeatures . Single ( x => x . Name == "amount" ) ;
186+ Assert . That ( amountStructuralFeature . QueryTypeName ( ) , Is . EqualTo ( "Amount" ) ) ;
187+
188+ var timeTriggerClass = this . rootPackage . EClassifiers . OfType < EClass > ( ) . Single ( x => x . Name == "TimeTrigger" ) ;
189+ var minutesStructuralFeature = timeTriggerClass . EStructuralFeatures . Single ( x => x . Name == "minutes" ) ;
190+ Assert . That ( minutesStructuralFeature . QueryTypeName ( ) , Is . EqualTo ( "EInt" ) ) ;
191+ }
192+
193+ [ Test ]
194+ public void Verify_that_QueryIsNullable_returns_expected_results ( )
195+ {
196+ var relationClass = this . rootPackage . EClassifiers . OfType < EClass > ( ) . Single ( x => x . Name == "ContainmentRelation" ) ;
197+ var containerFeature = relationClass . EStructuralFeatures . Single ( x => x . Name == "container" ) ;
198+ Assert . That ( containerFeature . QueryIsNullable ( ) , Is . False ) ;
199+
200+ var standardActionClass = this . rootPackage . EClassifiers . OfType < EClass > ( ) . Single ( x => x . Name == "StandardAction" ) ;
201+ var toolFeature = standardActionClass . EStructuralFeatures . Single ( x => x . Name == "tool" ) ;
202+ Assert . That ( toolFeature . QueryIsNullable ( ) , Is . True ) ;
203+
204+ var recipeClass = this . rootPackage . EClassifiers . OfType < EClass > ( ) . Single ( x => x . Name == "Recipe" ) ;
205+ var ingredientsFeature = recipeClass . EStructuralFeatures . Single ( x => x . Name == "ingredients" ) ;
206+ Assert . That ( ingredientsFeature . QueryIsNullable ( ) , Is . False ) ;
207+ }
180208 }
181209}
0 commit comments