Esempio n. 1
0
        public void Invalid(int statusCode, string protocol, string version)
        {
            var instance = new StatusLine {
                StatusCode = statusCode, Protocol = protocol, Version = version
            };

            Assert.False(instance.Valid);
            Assert.Throws <InvalidOperationException>(() => instance.Validate());
        }
Esempio n. 2
0
        public void Valid(int statusCode, string protocol, string version)
        {
            var instance = new StatusLine {
                StatusCode = statusCode, Protocol = protocol, Version = version
            };

            Assert.True(instance.Valid);
            Assert.True(instance.Validate() != null);
        }