anchor.diff:  
         test('directive should not be injectable on same element', () async {
           final testBed = new NgTestBed<ShouldFailToInjectFromElement>();
  -        expect(testBed.create(), throwsInAngular(anything));
  +        expect(testBed.create(), throwsNoProviderError);
         });
   
         test('directive should not be injectable in same view', () async {
           final testBed = new NgTestBed<ShouldFailToInjectFromView>();
  -        expect(testBed.create(), throwsInAngular(anything));
  +        expect(testBed.create(), throwsNoProviderError);
         });
   
         test('directive should not be injectable in child view', () async {
           final testBed = new NgTestBed<ShouldFailToInjectFromParentView>();
  -        expect(testBed.create(), throwsInAngular(anything));
  +        expect(testBed.create(), throwsNoProviderError);
         });
   
         test('service on Visibility.none component is injectable', () async {
  
positive.code: )
  class InjectsVisibilityLocalComponent {
    ShouldFailToInjectParentComponent parent;
    InjectsVisibilityLocalComponent(this.parent);
  }
  
  
negative.code: @TestOn('browser')
  import 'package:test/test.dart';
  import 'package:angular/angular.dart';
  import 'package:angular_test/angular_test.dart';
  
  import 'visibility_test.template.dart' as ng_generated;
  
  final throwsNoProviderError = throwsA(const isInstanceOf<NoProviderError>());
  
  void main() {
    ng_generated.initReflector();
  
  