public void IsSupportedReturnsTrueWhenReferenceNameIncludesAgeTest(Type type, bool typeSupported, double min, double max) { if (typeSupported == false) { // Ignore this test return; } var target = new AgeValueGenerator(); var actual = target.IsSupported(type, "SomeAgeValue", null); actual.Should().BeTrue(); }
public void IsSupportedThrowsExceptionWithNullTypeTest() { var target = new AgeValueGenerator(); Action action = () => target.IsSupported(null, null, null); action.ShouldThrow<ArgumentNullException>(); }
public void IsSupportedEvaluatesRequestedTypeTest(Type type, bool typeSupported, double min, double max) { var target = new AgeValueGenerator(); var actual = target.IsSupported(type, "Age", null); actual.Should().Be(typeSupported); }