本文整理汇总了C#中MockRepository.AddFile方法的典型用法代码示例。如果您正苦于以下问题:C# MockRepository.AddFile方法的具体用法?C# MockRepository.AddFile怎么用?C# MockRepository.AddFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MockRepository
的用法示例。
在下文中一共展示了MockRepository.AddFile方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FixtureSetUp
[TestFixtureSetUp] public void FixtureSetUp()
{
MockRepository mockRepository = new MockRepository();
//mockRepository.AddFile(NO_CONTENTS_PATH, null, null, null);
mockRepository.AddFile(BINARY_WITH_CONTENTS_PATH, null, MimeType("application/octet-stream"), "Contents");
mockRepository.AddFile(CONTENTS_PATH, null, null, "This is the first line\nSecond Line...\nAnd the third\n\nFinal line!");
repository = mockRepository;
}
示例2: FixtureSetUp
[TestFixtureSetUp] public void FixtureSetUp()
{
MockRepository mockRepository = new MockRepository();
mockRepository.AddFile(NO_PROPS_PATH, null, null, null);
mockRepository.AddFile(MIME_PROP_PATH, null, Props("svn:mime-type", "text/source"), null);
mockRepository.AddFile(EOL_STYLE_PROP_PATH, null, Props("svn:eol-style", "native"), null);
mockRepository.AddFile(LOGREGEGX_PROP_PATH, null, Props("bugtraq:logregex", @"^.*$", @"\d+"), null);
repository = mockRepository;
}
示例3: FixtureSetUp
[TestFixtureSetUp] public void FixtureSetUp()
{
MockRepository mockRepository = new MockRepository();
mockRepository.AddFile(NO_MIME_PATH, null, null, null);
mockRepository.AddFile(CSHARP_PATH, null, MimeType("text/cs"), null);
mockRepository.AddFile(BINARY_PATH, null, MimeType("application/octet-stream"), null);
mockRepository.AddFile(TEXT_PATH, null, MimeType("text"), null);
mockRepository.AddFile(TEXTING_PATH, null, MimeType("texting"), null);
mockRepository.AddFile(TEXT_SLASH_PATH, null, MimeType("text/"), null);
repository = mockRepository;
}