public virtual void TestDiagnostic() { Store(new ClassHasNoFieldsTestCase.Item()); IList diagnostics = NativeCollections.Filter(_collector.Diagnostics(), new _IPredicate4_34 ()); Assert.AreEqual(1, diagnostics.Count); ClassHasNoFields diagnostic = (ClassHasNoFields)((IDiagnostic)diagnostics[0]); Assert.AreEqual(ReflectPlatform.FullyQualifiedName(typeof(ClassHasNoFieldsTestCase.Item )), diagnostic.Reason()); }
public virtual void TestDiagnostic() { IQuery query = NewQuery(typeof(DescendIntoTranslatorTestCase.Item)); query.Descend("_name").Constrain("foo").StartsWith(true); query.Execute(); IList diagnostics = NativeCollections.Filter(_collector.Diagnostics(), new _IPredicate4_36 ()); Assert.AreEqual(1, diagnostics.Count); DescendIntoTranslator diagnostic = (DescendIntoTranslator)((IDiagnostic)diagnostics [0]); Assert.AreEqual(ReflectPlatform.FullyQualifiedName(typeof(DescendIntoTranslatorTestCase.Item )) + "." + "_name", diagnostic.Reason()); }