public void HasSerializedDataReturnsWhetherExceptionContainsData()
        {
            var key         = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);
            var value       = Guid.NewGuid().ToString();
            var keyNotFound = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);

            var sut = new TimeoutException();

            sut.Data.Add(key, value);

            sut.HasSerializedData(key).Should().BeTrue();
            sut.HasSerializedData(keyNotFound).Should().BeFalse();
        }
        public void HasSerializedDataValidatesKeyValueTest(string key, bool isValid)
        {
            var sut = new TimeoutException();

            Action action = () => sut.HasSerializedData(key);

            if (isValid)
            {
                action.Should().NotThrow();
            }
            else
            {
                action.Should().Throw <ArgumentException>();
            }
        }