mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -177,7 +177,7 @@ namespace Orchard.Core.Tests.Routable.Services {
|
|||||||
var thing1 = CreateRoutePartFromScratch("Foo", "", "bar");
|
var thing1 = CreateRoutePartFromScratch("Foo", "", "bar");
|
||||||
var thing2 = CreateRoutePartWithExistingContainer("Foo", thing1.As<ICommonPart>().Container);
|
var thing2 = CreateRoutePartWithExistingContainer("Foo", thing1.As<ICommonPart>().Container);
|
||||||
Assert.That(thing2.Path, Is.EqualTo("bar/foo-2"));
|
Assert.That(thing2.Path, Is.EqualTo("bar/foo-2"));
|
||||||
Assert.That(thing2.Slug, Is.EqualTo("foo"));
|
Assert.That(thing2.Slug, Is.EqualTo("foo-2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@@ -185,7 +185,7 @@ namespace Orchard.Core.Tests.Routable.Services {
|
|||||||
var thing1 = CreateRoutePartFromScratch("Hi", "foo", "bar");
|
var thing1 = CreateRoutePartFromScratch("Hi", "foo", "bar");
|
||||||
var thing2 = CreateRoutePartWithExistingContainer("There", thing1.As<ICommonPart>().Container, "foo");
|
var thing2 = CreateRoutePartWithExistingContainer("There", thing1.As<ICommonPart>().Container, "foo");
|
||||||
Assert.That(thing2.Path, Is.EqualTo("bar/foo-2"));
|
Assert.That(thing2.Path, Is.EqualTo("bar/foo-2"));
|
||||||
Assert.That(thing2.Slug, Is.EqualTo("foo"));
|
Assert.That(thing2.Slug, Is.EqualTo("foo-2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Reference in New Issue
Block a user