public void AttemptingToGenerateACsvFromAnInvalidDefinitionThrowsAnException() { var definition = CsvDefinitionProvider.GetValid(); definition.Headers[1] = "WRONG"; Assert.Throws <InvalidOperationException>(() => definition.GenerateString()); }
public void WhenCallingGenerateFileThePathParameterCannotBeEmpty() => Assert.Throws <ArgumentException>("path", () => CsvDefinitionProvider.GetValid().GenerateFile(string.Empty));
public void WhenCallingGenerateFileThePathParameterIsRequired() => Assert.Throws <ArgumentNullException>("path", () => CsvDefinitionProvider.GetValid().GenerateFile(null));