public void IsSupportedReturnsWhetherScenarioIsValidTest(Type type, string referenceName, bool supported) { var target = new UriValueGenerator(); var actual = target.IsSupported(type, referenceName, null); actual.Should().Be(supported); }
public void IsSupportedThrowsExceptionWithNullTypeTest() { var buildChain = new LinkedList<object>(); buildChain.AddFirst(Guid.NewGuid().ToString()); var target = new UriValueGenerator(); Action action = () => target.IsSupported(null, Guid.NewGuid().ToString(), buildChain); action.ShouldThrow<ArgumentNullException>(); }