StatePrinting.Configurations.TestingBehaviour.SetAutomaticTestRewrite C# (CSharp) Метод

SetAutomaticTestRewrite() публичный Метод

Evaluate the function for each failing test.

Your function can rely on anything such as an environment variable or a file on the file system.

If you only want to do this evaluation once pr. test suite execution you should wrap your function in a Lazy
public SetAutomaticTestRewrite ( TestRewriteIndicator indicator ) : Configuration
indicator TestRewriteIndicator
Результат Configuration
        public Configuration SetAutomaticTestRewrite(TestRewriteIndicator indicator)
        {
            if (indicator == null)
                throw new ArgumentNullException("indicator");
            AutomaticTestRewrite = indicator;

            return configuration;
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Instantiate using the <see cref="DefaultIndention"/> and the <see cref="CurlyBraceStyle"/>
        /// </summary>
        public Configuration(
            string indentIncrement = DefaultIndention,
            TestFrameworkAreEqualsMethod areEqualsMethod = null)
        {
            IndentIncrement = indentIncrement;
            OutputFormatter = new CurlyBraceStyle(this);
            NewLineDefinition = Environment.NewLine;
            LegacyBehaviour = new LegacyBehaviour();

            Test = new TestingBehaviour(this);
            Test.SetAutomaticTestRewrite(x => false);
            Test.SetAssertMessageCreator(new DefaultAssertMessage().Create);

            if(areEqualsMethod != null)
                Test.SetAreEqualsMethod(areEqualsMethod);
        }
All Usage Examples Of StatePrinting.Configurations.TestingBehaviour::SetAutomaticTestRewrite