/// <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;
 }
 /// <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;
 }
        /// <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);
            }
        }
Beispiel #4
0
 public Configuration(string indentIncrement = DefaultIndention)
 {
     IndentIncrement = indentIncrement;
     OutputFormatter = new CurlyBraceStyle(indentIncrement);
 }
 public CurlyBraceStyleWrapper(Configuration configuration)
 {
     _formatter = new CurlyBraceStyle(configuration);
 }