C# 클래스 NUnit.Framework.FileAssert

Summary description for FileAssert.
파일 보기 프로젝트 열기: nunit/nunit

공개 메소드들

메소드 설명
AreEqual ( FileInfo expected, FileInfo actual ) : void

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreEqual ( FileInfo expected, FileInfo actual, string message ) : void

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreEqual ( Stream expected, Stream actual ) : void

Verifies that two Streams are equal. Two Streams are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreEqual ( Stream expected, Stream actual, string message ) : void

Verifies that two Streams are equal. Two Streams are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreEqual ( string expected, string actual ) : void

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreEqual ( string expected, string actual, string message ) : void

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

AreNotEqual ( FileInfo expected, FileInfo actual ) : void

Asserts that two files are not equal. If they are equal an AssertionException is thrown.

AreNotEqual ( FileInfo expected, FileInfo actual, string message ) : void

Asserts that two files are not equal. If they are equal an AssertionException is thrown.

AreNotEqual ( Stream expected, Stream actual ) : void

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.

AreNotEqual ( Stream expected, Stream actual, string message ) : void

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.

AreNotEqual ( string expected, string actual ) : void

Asserts that two files are not equal. If they are equal an AssertionException is thrown.

AreNotEqual ( string expected, string actual, string message ) : void

Asserts that two files are not equal. If they are equal an AssertionException is thrown.

DoesNotExist ( FileInfo actual ) : void

Asserts that the file does not exist. If it does exist an AssertionException is thrown.

DoesNotExist ( FileInfo actual, string message ) : void

Asserts that the file does not exist. If it does exist an AssertionException is thrown.

DoesNotExist ( string actual ) : void

Asserts that the file does not exist. If it does exist an AssertionException is thrown.

DoesNotExist ( string actual, string message ) : void

Asserts that the file does not exist. If it does exist an AssertionException is thrown.

Exists ( FileInfo actual ) : void

Asserts that the file exists. If it does not exist an AssertionException is thrown.

Exists ( FileInfo actual, string message ) : void

Asserts that the file exists. If it does not exist an AssertionException is thrown.

Exists ( string actual ) : void

Asserts that the file exists. If it does not exist an AssertionException is thrown.

Exists ( string actual, string message ) : void

Asserts that the file exists. If it does not exist an AssertionException is thrown.

비공개 메소드들

메소드 설명
Equals ( object a, object b ) : bool
ReferenceEquals ( object a, object b ) : void

메소드 상세

AreEqual() 정적인 공개 메소드

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( FileInfo expected, FileInfo actual ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
리턴 void

AreEqual() 정적인 공개 메소드

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( FileInfo expected, FileInfo actual, string message ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
리턴 void

AreEqual() 정적인 공개 메소드

Verifies that two Streams are equal. Two Streams are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( Stream expected, Stream actual ) : void
expected Stream The expected Stream
actual Stream The actual Stream
리턴 void

AreEqual() 정적인 공개 메소드

Verifies that two Streams are equal. Two Streams are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( Stream expected, Stream actual, string message ) : void
expected Stream The expected Stream
actual Stream The actual Stream
message string The message to display if Streams are not equal
리턴 void

AreEqual() 정적인 공개 메소드

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( string expected, string actual ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
리턴 void

AreEqual() 정적인 공개 메소드

Verifies that two files are equal. Two files are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.
static public AreEqual ( string expected, string actual, string message ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( FileInfo expected, FileInfo actual ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( FileInfo expected, FileInfo actual, string message ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( Stream expected, Stream actual ) : void
expected Stream The expected Stream
actual Stream The actual Stream
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( Stream expected, Stream actual, string message ) : void
expected Stream The expected Stream
actual Stream The actual Stream
message string The message to be displayed when the two Stream are the same.
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( string expected, string actual ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
리턴 void

AreNotEqual() 정적인 공개 메소드

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( string expected, string actual, string message ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
리턴 void

DoesNotExist() 정적인 공개 메소드

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( FileInfo actual ) : void
actual System.IO.FileInfo A file containing the actual value
리턴 void

DoesNotExist() 정적인 공개 메소드

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( FileInfo actual, string message ) : void
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
리턴 void

DoesNotExist() 정적인 공개 메소드

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( string actual ) : void
actual string The path to a file containing the actual value
리턴 void

DoesNotExist() 정적인 공개 메소드

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( string actual, string message ) : void
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
리턴 void

Exists() 정적인 공개 메소드

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( FileInfo actual ) : void
actual System.IO.FileInfo A file containing the actual value
리턴 void

Exists() 정적인 공개 메소드

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( FileInfo actual, string message ) : void
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
리턴 void

Exists() 정적인 공개 메소드

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( string actual ) : void
actual string The path to a file containing the actual value
리턴 void

Exists() 정적인 공개 메소드

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( string actual, string message ) : void
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
리턴 void