public void Create_NotIDbConnection_Test() { // Arrange var target = new ConnectionCreatorImpl(); // Act TU.ExecuteExcectedException <ArgumentException>( () => target.Create(typeof(IComponentCreator))); }
public void Create_ComponentTypeNull_Test() { // Arrange var target = new ConnectionCreatorImpl(); // Act TU.ExecuteExcectedException <ArgumentNullException>( () => target.Create(null)); }
public void CreateTest() { // Arrange var target = new ConnectionCreatorImpl(); // Act var actual = target.Create(typeof(IDbConnection)) as IDbConnection; // Assert Assert.IsNotNull(actual); }