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

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

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

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

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

            appFolderPath.LogProperties();
            appFolderPath.BaseDirectory.ShouldNotNull();
        }
示例#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");
        }