Example #1
0
        public void IsWebApp_Should_False()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.IsWebApp.ShouldFalse();
        }
Example #2
0
        public void CreateSubFolder_SubPath_Null_Should_Throw()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.CombinePath("A", null);
        }
Example #3
0
        public void Bin_Should_NotNull()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.Bin.ShouldNotNull();
        }
Example #4
0
        public void AppData_Should_NotNull()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.AppData.ShouldNotNull();
        }
Example #5
0
        public void BaseDirectory_Should_NotNull()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.BaseDirectory.ShouldNotNull();
        }
Example #6
0
        public void CreateSubFolder_Should_OK()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.CombinePath("A", "B").ShouldEqual(@"A\B");
            appFolderPath.CombinePath(@"A\", "B").ShouldEqual(@"A\B");
        }