public void It_creates_mock_objects_for_ctor_array_parameters_with_elements() { mocker.Use(new Mock <IService2>()); WithServiceArray instance = mocker.CreateInstance <WithServiceArray>(); instance.Services.ShouldNotBeNull().ShouldNotBeEmpty(); }
public void It_creates_mock_objects_for_ctor_array_parameters() { WithServiceArray instance = mocker.CreateInstance <WithServiceArray>(); IService2[] services = instance.Services; Assert.IsNotNull(services); Assert.IsFalse(services.Any()); }
public void It_creates_mock_objects_for_ctor_array_parameters_with_elements() { mocker.Use(new Mock <IService2>()); WithServiceArray instance = mocker.CreateInstance <WithServiceArray>(); IService2[] services = instance.Services; Assert.IsNotNull(services); Assert.IsTrue(services.Any()); }
public void It_creates_mock_objects_for_ctor_array_parameters() { WithServiceArray instance = mocker.CreateInstance <WithServiceArray>(); instance.Services.ShouldNotBeNull().ShouldBeEmpty(); }