public void AddInvalidToken_VersionElementGeneratorLoadException()
 {
     var col = new VersionPartGeneratorCollection();
     col.Add("!passThrough", "noType");
 }
 public void AddNonExistingType_VersionElementGeneratorLoadException()
 {
     var col = new VersionPartGeneratorCollection();
     col.Add(Constants.TestVersionPartGeneratorToken, "noType");
 }
 public void AddDuplicateToken_VersionElementGeneratorLoadException()
 {
     var col = new VersionPartGeneratorCollection { { Constants.TestVersionPartGeneratorToken, new TestGenerator() } };
     col.Add(Constants.TestVersionPartGeneratorToken, new TestGenerator());
 }
 public void InstantiateWithCollectionInitializer_InstantiatedAndAdded()
 {
     var col = new VersionPartGeneratorCollection {{Constants.TestVersionPartGeneratorToken, new TestGenerator()}};
     Assert.IsNotNull(col[Constants.TestVersionPartGeneratorToken]);
 }
 public void GetGeneratorFromEmptyCollection_KeyNotFoundException()
 {
     var col = new VersionPartGeneratorCollection();
     var gen = col["noElements"];
 }
 public void InstantiateVersionPartGeneratorsCollection_Instantiated()
 {
     var col = new VersionPartGeneratorCollection();
 }