public void CapabilitiesOperations()
 {
     IDictionary<string, object> properties = new Dictionary<string, object>();
     AppProperties appProperties = new AppProperties(properties);
     appProperties.Capabilities = Capabilities.Create();
     Capabilities capabilities = appProperties.Capabilities;
     capabilities.OpaqueVersion = "1.0";
     capabilities.SendFileVersion = "1.1";
     capabilities.WebSocketVersion = "1.2";
     Assert.Equal("1.0", appProperties.Capabilities.OpaqueVersion);
     Assert.Equal("1.1", appProperties.Capabilities.SendFileVersion);
     Assert.Equal("1.2", appProperties.Capabilities.WebSocketVersion);
 }
        public void AddressCollectionOperations()
        {
            IDictionary<string, object> properties = new Dictionary<string, object>();
            AppProperties appProperties = new AppProperties(properties);
            appProperties.Addresses = AddressCollection.Create();
            appProperties.Addresses.Add(new Address("http", "*", "80", "/"));

            Assert.Equal(1, appProperties.Addresses.Count);
            Assert.Equal("http", appProperties.Addresses[0].Scheme);

            foreach (Address address in appProperties.Addresses)
            {
                Assert.Equal("http", address.Scheme);
                Assert.Equal("*", address.Host);
                Assert.Equal("80", address.Port);
                Assert.Equal("/", address.Path);
            }
        }
 public bool Equals(AppProperties other)
 {
     return(Equals(_dictionary, other._dictionary));
 }