Exemple #1
0
 public void StandardSettingsShouldBeNotSet()
 {
     Assert.Empty(settings);
     Assert.Null(settings.HeaderTableSize());
     Assert.Null(settings.InitialWindowSize());
     Assert.Null(settings.MaxConcurrentStreams());
     Assert.Null(settings.PushEnabled());
     Assert.Null(settings.MaxFrameSize());
     Assert.Null(settings.MaxHeaderListSize());
 }
Exemple #2
0
        public void SettingsShouldStripShouldMatch()
        {
            Http2Settings settings = new Http2Settings();

            settings.PushEnabled(true);
            settings.HeaderTableSize(4096);
            settings.InitialWindowSize(123);
            settings.MaxConcurrentStreams(456);

            writer.WriteSettingsAsync(this.ctx.Object, settings, this.ctx.Object.NewPromise());
            this.ReadFrames();
            this.listener.Verify(
                x => x.OnSettingsRead(
                    It.Is <IChannelHandlerContext>(c => c == this.ctx.Object),
                    It.Is <Http2Settings>(v => v.SequenceEqual(settings))));
        }