public void InstanceOf_CreatesInstance_WhenArgumentIsMissing() { IEnumerable arg2 = Substitute.For <IEnumerable>(); Action <int> arg3 = _ => { }; TestClassOne testObject = Instance.Of <TestClassOne>(arg3, arg2); testObject.ShouldNotBeNull(); }
public void InstanceOf_CreatesInstance_WhenArgumentsInAnyOrder() { ITestInterfaceOne arg1 = Substitute.For <ITestInterfaceOne>(); IEnumerable arg2 = Substitute.For <IEnumerable>(); Action <int> arg3 = _ => { }; TestClassOne testObject = Instance.Of <TestClassOne>(arg3, arg2, arg1); testObject.ShouldNotBeNull(); }
public void InstanceOf_CreatesInstanceWithPublicConstructor_WhenNoArgumentsSpecified() { TestClassOne testObject = Instance.Of <TestClassOne>(); testObject.ShouldNotBeNull(); }