Exemplo n.º 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);
     AreEqualsMethod      = areEqualsMethod;
     NewLineDefinition    = Environment.NewLine;
     LegacyBehaviour      = new LegacyBehaviour();
     AutomaticTestRewrite = (x) => false;
 }
Exemplo n.º 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);
            }
        }