using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;

namespace StackExchange.Redis.Tests.Issues
{
    [TestFixture]
    public class BgSaveResponse : TestBase
    {
        [Test]
#pragma warning disable 0618
        [TestCase(SaveType.ForegroundSave)]
#pragma warning restore 0618
        [TestCase(SaveType.BackgroundSave)]
        [TestCase(SaveType.BackgroundRewriteAppendOnlyFile)]
        public void ShouldntThrowException(SaveType saveType)
        {
            using (var conn = Create(null, null, true))
            {
                var Server = GetServer(conn);
                Server.Save(saveType);
            }
        }
    }
}
