public void ReadTextTest() { string fname = "test123.txt"; string filePath = Path.Combine(_testDirectory, fname); File target = new File(filePath); string expected = "Single string"; System.IO.File.WriteAllText(filePath, expected); string actual = target.ReadText(); Assert.AreEqual(expected, actual, "String should be equal"); }