Exemplo n.º 1
0
 public void BuildPrefixShouldUsePrefixAsPrefixIfNoHostPathIsSupplied()
 {
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(null, "prefix"), Is.EqualTo("prefix"));
 }
Exemplo n.º 2
0
 public void BuildPrefixShouldUseRoothedPrefixOverHostPath()
 {
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(@"c:\temp", @"d:\prefix"), Is.EqualTo(@"d:\prefix"));
 }
Exemplo n.º 3
0
 public void BuildPrefixShouldUseHostPathAsPrefix()
 {
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(@"c:\temp", null), Is.EqualTo(@"c:\temp"));
 }
Exemplo n.º 4
0
 public void BuildPrefixShouldAppendUnRoothedPrefixAfterHostPath()
 {
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(@"c:\temp", "nested"), Is.EqualTo(@"c:\temp\nested"));
 }
Exemplo n.º 5
0
 public void BuildPrefixAllNull()
 {
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(null, null), Is.EqualTo(string.Empty));
     Assert.That(TemplateFieldPrefixHelper.BuildPrefix(string.Empty, string.Empty), Is.EqualTo(string.Empty));
 }