/// <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); }
/// <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); } }
public Configuration SetAutomaticTestRewrite(TestingBehaviour.TestRewriteIndicator indicator) { return Test.SetAutomaticTestRewrite(indicator); }