public void Register2()
 {
     var FactoryObject = new Factory<string, int>();
     FactoryObject.Register("A", () => 1);
     Assert.True(FactoryObject.Exists("A"));
     Assert.Equal(1, FactoryObject.Create("A"));
 }
 public void Register3()
 {
     var FactoryObject = new Factory<string, int>();
     Assert.False(FactoryObject.Exists("A"));
 }