예제 #1
0
 public void AddNewMethodTest()
 {
     TransferFactory.AddNewMethod<FileTransfer>("test");
     IFileTransfer expected = new FileTransfer();
     var actual = TransferFactory.Create("test");
     Assert.AreSame(expected.GetType(), actual.GetType());
 }
예제 #2
0
 public void CreateTest()
 {
     var expected = new FileTransfer(); // TODO: Initialize to an appropriate value
     var actual = TransferFactory.Create();
     Assert.AreSame(expected.GetType(), actual.GetType());
 }