A-A+

【NUnit】FileAssert (NUnit 2.4)

2014年12月27日 Nunit 【NUnit】FileAssert (NUnit 2.4)已关闭评论 阅读 378 次

FileAssert类提供了比较两个文件的方法,包括Stream、FileInfo、指定文件路径string的参数格式。

FileAssert.AreEqual( Stream expected, Stream actual );
FileAssert.AreEqual( Stream expected, Stream actual, string message );
FileAssert.AreEqual( Stream expected, Stream actual,
                string message, params object[] args );

FileAssert.AreEqual( FileInfo expected, FileInfo actual );
FileAssert.AreEqual( FileInfo expected, FileInfo actual, string message );
FileAssert.AreEqual( FileInfo expected, FileInfo actual,
                string message, params object[] args );

FileAssert.AreEqual( string expected, string actual );
FileAssert.AreEqual( string expected, string actual, string message );
FileAssert.AreEqual( string expected, string actual,
                string message, params object[] args );

FileAssert.AreNotEqual( Stream expected, Stream actual );
FileAssert.AreNotEqual( Stream expected, Stream actual, string message );
FileAssert.AreNotEqual( Stream expected, Stream actual,
                string message, params object[] args );

FileAssert.AreNotEqual( FileInfo expected, FileInfo actual );
FileAssert.AreNotEqual( FileInfo expected, FileInfo actual, string message );
FileAssert.AreNotEqual( FileInfo expected, FileInfo actual,
                string message, params object[] args );

FileAssert.AreNotEqual( string expected, string actual );
FileAssert.AreNotEqual( string expected, string actual, string message );
FileAssert.AreNotEqual( string expected, string actual,
                string message, params object[] args );
标签:

评论已关闭!

Copyright © 极品飞鸽 保留所有权利.   Theme  Ality 蜀ICP备14015766号-1

用户登录

分享到: