public void TestWriteNameBatch() { // Arrange String path = "../../../output.txt"; FileWriter fileWriter = new FileWriter(path); List <Name> input = new List <Name>(); List <String> expected = new List <String>(); expected.Add("Jonathan Nicholas"); expected.Add("Mirai Kuriyama"); expected.Add("Shouko Nishimiya"); input = Name.BatchConvert(expected); // Act fileWriter.WriteBatch(input); // Assert FileLoader fileLoader = new FileLoader(path); List <string> actual = fileLoader.Some(input.Count); Assert.Equal(expected, actual); }