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