public void AddActivityType_ArgumentNull(Type type, string name, string version) => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( Mock.Of <ITaskHubWorkerBuilder>(), type, name, version));
public void AddActivityType_ArgumentEmptyName() => RunTestException <ArgumentException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( Mock.Of <ITaskHubWorkerBuilder>(), typeof(TestActivity), string.Empty, Version));
public void AddActivityType_ArgumentNullType() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( Mock.Of <ITaskHubWorkerBuilder>(), (Type)null));
public void AddActivityDescriptor_ArgumentNullDescriptor() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( Mock.Of <ITaskHubWorkerBuilder>(), (TaskActivityDescriptor)null));
public void AddActivityType_ArgumentNullBuilder2() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( null, typeof(TestActivity), Name, Version));
public void AddActivityDescriptor_ArgumentNullBuilder() => RunTestException <ArgumentNullException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity( null, new TaskActivityDescriptor(typeof(TestActivity))));
public void AddActivityGeneric_ArgumentInvalidType2() => RunTestException <ArgumentException>( _ => TaskHubWorkerBuilderActivityExtensions.AddActivity <AbstractActivity>( Mock.Of <ITaskHubWorkerBuilder>(), Name, Version));