Пример #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);
        }
Пример #2
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);
            }
        }
Пример #3
0
 public Configuration SetAutomaticTestRewrite(TestingBehaviour.TestRewriteIndicator indicator)
 {
     return Test.SetAutomaticTestRewrite(indicator);
 }