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

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

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

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

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

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