/// <summary> /// /// </summary> /// <param name="diffAsserter"></param> /// <param name="nameOfFileWithExpectedResult"></param> public FileContentComparer(IDiffAsserter diffAsserter, string nameOfFileWithExpectedResult) { if (string.IsNullOrWhiteSpace(nameOfFileWithExpectedResult)) { throw new ArgumentException("You must specify the name of the file that contains the expected value. Include folders relative to the root but exclude the .expected.txt suffix.", nameof(nameOfFileWithExpectedResult)); } _diffAsserter = diffAsserter ?? throw new ArgumentNullException(nameof(diffAsserter)); _nameOfFileWithExpectedResult = nameOfFileWithExpectedResult; }
static DiffAssert() { DiffAsserter = CreateInstance(); }