private void DoTest(string testInput, Styler styler) { string actualOutputFile = testInput.Replace(".xaml", "_output.xaml"); string expectedOutputFile = testInput.Replace(".xaml", "_output_expected.xaml"); string output = styler.FormatFile(testInput); File.WriteAllText(actualOutputFile, output); Assert.IsTrue(this.FileCompare(actualOutputFile, expectedOutputFile)); }