public void GetPath_Avoids_Double_Slashes()
            {
                //arrange
                var pathProvider = new SerializationRules.Providers.PathProvider();

                //act
                var path = pathProvider.GetPath(_serializableItem.Object, @"d:\serialization\");

                //assert
                Assert.AreEqual(@"d:\serialization\master\sitecore\content\home.item", path);
            }
            public void GetFolderPath_Returns_ItemPath()
            {
                //arrange
                var pathProvider = new SerializationRules.Providers.PathProvider();

                //act
                var path = pathProvider.GetFolderPath(_serializableItem.Object, @"d:\serialization");

                //assert
                Assert.AreEqual(path, @"d:\serialization\master\sitecore\content\home");
            }
            public void GetOldPath_Returns_ItemPath()
            {
                //arrange
                var pathProvider          = new SerializationRules.Providers.PathProvider();
                var oldSerializableItem   = _serializableItem.Object;
                var movedSerializableItem = new Mock <ISerializableItem>();

                movedSerializableItem.SetupGet(ms => ms.Name).Returns("sample item");
                //act
                var path = pathProvider.GetOldPath(movedSerializableItem.Object, oldSerializableItem, @"d:\serialization");

                //assert
                Assert.AreEqual(path, @"d:\serialization\master\sitecore\content\home\sample item.item");
            }