コード例 #1
0
        public void AUT_HtmlColorService_GetRandomHtmlColor_Static_Method_DirectCall_No_Exception_Thrown_Test()
        {
            // Arrange
            Action executeAction = null;

            // Act
            executeAction = () => HtmlColorService.GetRandomHtmlColor();

            // Assert
            Should.NotThrow(executeAction);
        }
コード例 #2
0
        public void AUT_HtmlColorService_GetPredefinedColorBasedOnIndex_Static_Method_DirectCall_No_Exception_Thrown_Test()
        {
            // Arrange
            var    index         = CreateType <int>();
            Action executeAction = null;

            // Act
            executeAction = () => HtmlColorService.GetPredefinedColorBasedOnIndex(index);

            // Assert
            Should.NotThrow(executeAction);
        }