MSTestExtensions/FileAssert.cs
/// <summary>
/// Asserts that a file contains a byte sequence.
/// </summary>
/// <param name="assert"><see cref="Assert.That"/></param>
/// <param name="path">The path to the file to check.</param>
/// <param name="expectedSequence">The expected byte sequence.</param>
Asserts that a file contains a byte sequence.
Asserts that a file contains a byte sequence .
public static void FileContainsBytes(this Assert assert, string path, byte[] expectedSequence)
        {
            if (!InternalContainsBytes(path, expectedSequence))
            {
                throw new AssertFailedException("File does not contain the expected byte sequence.");
            }
        }
public static void FileContainsBytes ( this Assert assert , string path , byte [ ] expectedSequence ) { if ( ! InternalContainsBytes ( path , expectedSequence ) ) { throw new AssertFailedException ( " " ) ; } }
Asserts that a file contains a byte sequence.
Asserts that a file contains a byte sequence .
Assert
this
path
string
The path to the file to check.
The path to the file to check .
expectedSequence
byte[]
The expected byte sequence.
The expected byte sequence .
assert
None