public void CanWriteToFileFromDAL() { ExportUsersToFile export = new ExportUsersToFile(); export.Execute(); string actual = File.ReadAllText("users.txt"); Assert.Equal(expected.Replace("\r\n","\n").Replace("\n",Environment.NewLine), actual); }
public void CanWriteToFileFromDAL() { ExportUsersToFile export = new ExportUsersToFile(); export.Execute(); string actual = File.ReadAllText("users.txt"); Assert.Equal(expected, actual); }
public async Task CanWriteToFileFromDAL() { ExportUsersToFile export = new ExportUsersToFile(); await export.Execute(); string actual = File.ReadAllText("users.txt"); Assert.Equal(expected.Replace("\r\n", "\n").Replace("\n", Environment.NewLine), actual); }