public void ShouldFillInvalidFieldsWithDefaults()
        {
            var parsed = ValidConnectionString.Parse(string.Empty);

            Assert.Equal(default(string), parsed.First);
            Assert.Equal(default(int), parsed.Second);
            Assert.Equal(default(bool), parsed.Third);
            Assert.Equal(default(Uri), parsed.Fourth);
            Assert.Equal(default(Guid), parsed.Fifth);
        }
        public void ShouldParseAllValidFields()
        {
            var parsed = ValidConnectionString.Parse("First=Test;Second=2;Third=true;Fourth=http://test.nl;Fifth=00000000-0000-0000-0000-0000000000000;");

            Assert.Equal("Test", parsed.First);
            Assert.Equal(2, parsed.Second);
            Assert.Equal(true, parsed.Third);
            Assert.Equal(new Uri("http://test.nl"), parsed.Fourth);
            Assert.Equal(Guid.Empty, parsed.Fifth);
        }
        public void ShouldSupportQuotesAndEscaping()
        {
            var parsed = ValidConnectionString.Parse("First=\"'first\"\"\"");

            Assert.Equal("'first\"", parsed.First);
        }