MSTestExtensions/FileAssert.cs
/// <summary>
/// Asserts that a file does not contain 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="notExpectedSequence">The byte sequence that is not expected.</param>
Asserts that a file does not contain a byte sequence.
Asserts that a file does not contain a byte sequence .
public static void FileDoesNotContainBytes(this Assert assert, string path, byte[] notExpectedSequence)
        {
            if (InternalContainsBytes(path, notExpectedSequence))
            {
                throw new AssertFailedException("File does not contain the expected byte sequence.");
            }
        }
public static void FileDoesNotContainBytes ( this Assert assert , string path , byte [ ] notExpectedSequence ) { if ( InternalContainsBytes ( path , notExpectedSequence ) ) { throw new AssertFailedException ( " " ) ; } }
Asserts that a file does not contain a byte sequence.
Asserts that a file does not contain a byte sequence .
Assert
this
path
string
The path to the file to check.
The path to the file to check .
notExpectedSequence
byte[]
The byte sequence that is not expected.
The byte sequence that is not expected .
assert
None