Bytes2you.Validation.UnitTests.ValidationPredicates.ClassPredicates.InstanceOfTypeValidationPredicateTests.Constructors_Should.ThrowArgumentNullException_WhenTypeArgumentIsNull C# (CSharp) Method

ThrowArgumentNullException_WhenTypeArgumentIsNull() private method

private ThrowArgumentNullException_WhenTypeArgumentIsNull ( ) : void
return void
        public void ThrowArgumentNullException_WhenTypeArgumentIsNull()
        {
            // Arrange.
            Type type = null;

            // Act & Assert.
            Ensure.ArgumentNullExceptionIsThrown(() =>
            {
                new InstanceOfTypeValidationPredicate<string>(type);
            }, "type");
        }