本文整理汇总了C#中NUnit.Framework.AggregatePaths方法的典型用法代码示例。如果您正苦于以下问题:C# NUnit.Framework.AggregatePaths方法的具体用法?C# NUnit.Framework.AggregatePaths怎么用?C# NUnit.Framework.AggregatePaths使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NUnit.Framework
的用法示例。
在下文中一共展示了NUnit.Framework.AggregatePaths方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StringExtension_AggregatePath_ReplacesAllBackwardSlashesWithForwardSlashes
public void StringExtension_AggregatePath_ReplacesAllBackwardSlashesWithForwardSlashes()
{
var foo = new[] { @"../..\../something.less" };
var aggregatePaths = foo.AggregatePaths(@"C:\dir\");
Assert.AreEqual(@"../../../something.less", aggregatePaths);
}
示例2: StringExtension_AggregatePath_WillFixParentDeclarationIfPossible
public void StringExtension_AggregatePath_WillFixParentDeclarationIfPossible()
{
var foo = new[] {@"/site/../something.less"};
var aggregatePaths = foo.AggregatePaths(@"C:\dir\");
Assert.AreEqual("/something.less", aggregatePaths);
}
示例3: StringExtension_AggregatePath_CantGoUpMultipleLevels
public void StringExtension_AggregatePath_CantGoUpMultipleLevels()
{
var foo = new [] { @"../../site.less" };
var aggregatePaths = foo.AggregatePaths(@"C:\dir\");
Assert.AreEqual(@"../../site.less", aggregatePaths);
}
示例4: StringExtension_AggregatePath_CantEscapeToParentDirectory
public void StringExtension_AggregatePath_CantEscapeToParentDirectory()
{
var foo = new [] { @"..\site.less" };
var aggregatePaths = foo.AggregatePaths(@"C:\dir\");
// Even most of Windows accepts the forward slash as a path separator
// so it should be OK to let it get changed
Assert.AreEqual(@"../site.less", aggregatePaths);
}