コード例 #1
0
        public void IsSupportedReturnsWhetherTypeIsSupportedTest(Type type, bool supportedType)
        {
            var target = new GuidValueGenerator();

            var actual = target.IsSupported(type, null, null);

            actual.Should().Be(supportedType);
        }
コード例 #2
0
        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>();
        }