public void prop_Mock()
        {
            try
            {
                using (var expected = new TempDirectory())
                {
                    FileRepositoryConfiguration.Mock = expected.Info;
                    var actual = FileRepositoryConfiguration.Directory();

                    Assert.Same(expected.Info, actual);
                }
            }
            finally
            {
                FileRepositoryConfiguration.Mock = null;
            }
        }
        public void op_Create_object_object_XmlNode_whenAlternativeElementName()
        {
            const string expected = @"C:\Temp";

            var xml = new XmlDocument();
            xml.LoadXml("<cavity.repository directory='{0}' />".FormatWith(expected));

            var actual = new FileRepositoryConfiguration().Create(null, null, xml.DocumentElement) as DirectoryInfo;

            if (null == actual)
            {
                Assert.NotNull(null);
            }
            else
            {
                Assert.Equal(actual.FullName, expected);
            }
        }
        public void op_Create_object_object_XmlNode_whenAlternativeElementName()
        {
            const string expected = @"C:\Temp";

            var xml = new XmlDocument();

            xml.LoadXml("<cavity.repository directory='{0}' />".FormatWith(expected));

            var actual = new FileRepositoryConfiguration().Create(null, null, xml.DocumentElement) as DirectoryInfo;

            if (null == actual)
            {
                Assert.NotNull(null);
            }
            else
            {
                Assert.Equal(actual.FullName, expected);
            }
        }
 public void op_Directory_string()
 {
     Assert.Null(FileRepositoryConfiguration.Directory("cavity.repository"));
 }
 public void op_Directory()
 {
     Assert.Null(FileRepositoryConfiguration.Directory());
 }