src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// Verify a file content on disk with the expected content.
/// </summary>
Verify a file content on disk with the expected content.
Verify a file content on disk with the expected content .
private static void VerifyFile(string filePath, string[] fileContent)
        {
            StreamReader strReader = File.OpenText(filePath);
            int i = 0;
            while (!strReader.EndOfStream)
            {
                string line = strReader.ReadLine();
                Assert.IsTrue(string.Equals(line, fileContent[i], StringComparison.OrdinalIgnoreCase),
                    string.Format("'{0}' is correct.", line));
                i++;
            }
            strReader.Close();
        }
private static void VerifyFile ( string filePath , string [ ] fileContent ) { StreamReader strReader = File . OpenText ( filePath ) ; int i = 0 ; while ( ! strReader . EndOfStream ) { string line = strReader . ReadLine ( ) ; Assert . IsTrue ( string . Equals ( line , fileContent [ i ] , StringComparison . OrdinalIgnoreCase ) , string . Format ( " " , line ) ) ; i ++ ; } strReader . Close ( ) ; }
Verify a file content on disk with the expected content.
Verify a file content on disk with the expected content .
filePath
string
fileContent
string[]