Ejemplo n.º 1
0
        public void IsWebApp_Should_False()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.IsWebApp.ShouldFalse();
        }
Ejemplo n.º 2
0
        public void CreateSubFolder_SubPath_Null_Should_Throw()
        {
            var appFolderPath = new MyAppPath();

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

            appFolderPath.LogProperties();
            appFolderPath.Bin.ShouldNotNull();
        }
Ejemplo n.º 4
0
        public void AppData_Should_NotNull()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.AppData.ShouldNotNull();
        }
Ejemplo n.º 5
0
        public void BaseDirectory_Should_NotNull()
        {
            var appFolderPath = new MyAppPath();

            appFolderPath.LogProperties();
            appFolderPath.BaseDirectory.ShouldNotNull();
        }
Ejemplo n.º 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");
        }