Ejemplo n.º 1
0
 public void FailOnNullIdentity()
 {
     var discovery = new AnonymousDiscoveryService(() => new[] {new AnonymousTestDescriptor()});
       var environment = new AnonymousEnvironment(() => discovery);
       var configuration = new AnonymousConfiguration(() => environment);
       Assert.Throws<TestCompositionException>(() => new TestSession(configuration).Execute());
 }
Ejemplo n.º 2
0
 public void FailOnNullTestsEnumerable()
 {
     var discovery = new AnonymousDiscoveryService(() => null);
       var environment = new AnonymousEnvironment(() => discovery);
       var configuration = new AnonymousConfiguration(() => environment);
       Assert.Throws<TestCompositionException>(() => new TestSession(configuration).Execute());
 }
Ejemplo n.º 3
0
 public void DiscoveryCreated()
 {
     var discovery = new AnonymousDiscoveryService(Enumerable.Empty<ITestDescriptor>);
       var environment = new AnonymousEnvironment(() => discovery);
       new TestSession(new AnonymousConfiguration(() => environment)).Execute();
 }