title: TDD the WCF service class itself first
body: <p>So I started to create TDD tests for a new WCF service I wanted to create.  In TDD, you create the test, and start adding objects that don't exist yet into your tests.  First object I wanted to test was that the service is not null after instantiated.</p>
  
  <p>Then then I said wait, how the hell can you do that in WCF...a service extension is .svc.  Yes there's a .svc.cs but the main parent is .svc.  I don't see a way I can to TDD on this part where you've have something like this but it'd create an .svc instead of just a .cs:</p>
  
  <pre><code> [TestMethod]
      public void UponInitialization_ServiceIsNotNull()
      {
          // Arrange
          // Act
          NyNewService service = new MyNewService();
  
          // Assert
          Assert.IsTrue(service != null);
      }
  </code></pre>
  
  <p>This is a very fundamental necessary first test, testing the very simplest possible from the start...this is very common on any TDD or XP team doing TDD.</p>
  
  <p>Any thoughts on how I can create a new .svc from within my test here?  not a plain .cs?</p>