コード例 #1
0
        public void AUT_CustomizationExtensions_ToCustomization_Static_Method_DirectCall_No_Exception_Thrown_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodToCustomization);
            var builder = this.CreateType <ISpecimenBuilder>();

            // Act
            Action executeAction = () => CustomizationExtensions.ToCustomization(builder);

            // Assert
            Should.NotThrow(executeAction);
        }
コード例 #2
0
        public void AUT_CustomizationExtensions_ToCustomization_Static_Method_DirectCall_Result_ShouldNotBe_Null_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodToCustomization);
            var builder       = this.CreateType <ISpecimenBuilder>();
            var returnedValue = default(ICustomization);

            // Act
            Action executeAction = () => returnedValue = CustomizationExtensions.ToCustomization(builder);

            ActionAnalyzer.DoesActionThrowException(executeAction);

            // Assert
            returnedValue.ShouldNotBeNull();
        }