예제 #1
0
 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);
 }
예제 #2
0
 public void CanWriteToFileFromDAL()
 {
     ExportUsersToFile export = new ExportUsersToFile();
     export.Execute();
     string actual = File.ReadAllText("users.txt");
     Assert.Equal(expected, actual);
 }
예제 #3
0
        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);
        }