public void AddCreator_NoCreatorIF_Test() { // Arrange ComponentCreators target = new ComponentCreators(); // Act TU.ExecuteExcectedException <QuillException>( () => target.Create(typeof(IComponentCreator))); }
public void Create_ArgumentComponent_Test() { // Arrange ComponentCreators target = new ComponentCreators(); // Act TU.ExecuteExcectedException <QuillException>( () => target.Create(typeof(ArgumentConstructorComponent))); }
public void Create_ComponentTypeNull_Test() { // Arrange ComponentCreators target = new ComponentCreators(); // Act TU.ExecuteExcectedException <ArgumentNullException>( () => target.Create(null)); }
public void Create_Default_Test() { // Arrange ComponentCreators target = new ComponentCreators(); // Act var actual = target.Create(typeof(NormalComponent)) as NormalComponent; // Assert Assert.IsNotNull(actual); }
public void AddCreatorTest() { // Arrange ComponentCreators target = new ComponentCreators(); target.AddCreator(typeof(IComponentCreator), t => new ComponentCreators()); // Act var actual = target.Create(typeof(IComponentCreator)) as IComponentCreator; // Assert Assert.IsNotNull(actual); }