public void IsAppServiceWindowsEnvironment_SetAzureWebsiteInstanceId_ReturnsTrue()
        {
            var environment = new TestEnvironment();

            environment.SetEnvironmentVariable(AzureWebsiteInstanceId, Guid.NewGuid().ToString("N"));
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Assert.True(environment.IsAppServiceWindowsEnvironment());
            }
            else
            {
                Assert.False(environment.IsAppServiceWindowsEnvironment());
            }
        }
        public void IsPersistentStorageAvailable_IsWindows_ReturnsTrue()
        {
            var environment = new TestEnvironment();

            environment.SetEnvironmentVariable(AzureWebsiteInstanceId, Guid.NewGuid().ToString("N"));
            Assert.True(environment.IsAppServiceWindowsEnvironment());
            Assert.True(environment.IsPersistentFileSystemAvailable());
        }
        public void IsAppServiceWindowsEnvironment_AzureWebsiteInstanceIdNotSet_ReturnsFalse()
        {
            var environment = new TestEnvironment();

            Assert.False(environment.IsAppServiceWindowsEnvironment());
        }