public void CanCreateThrowsExceptionWithNullTypeTest() { var target = new ArrayTypeCreator(); Action action = () => target.CanCreate(null, null, null); action.ShouldThrow<ArgumentNullException>(); }
public void CanCreateReturnsWhetherTypeIsSupportedTest(Type type, bool supported) { var target = new ArrayTypeCreator(); var actual = target.CanCreate(type, null, null); actual.Should().Be(supported); }
public void CanCreateThrowsExceptionWithNullType() { var configuration = Substitute.For <IBuildConfiguration>(); var sut = new ArrayTypeCreator(); Action action = () => sut.CanCreate(configuration, null !, (Type)null !); action.Should().Throw <ArgumentNullException>(); }
public void CanCreateReturnsWhetherTypeIsSupportedTest(Type type, bool supported) { var configuration = Substitute.For <IBuildConfiguration>(); var sut = new ArrayTypeCreator(); var actual = sut.CanCreate(configuration, null !, type); actual.Should().Be(supported); }