コード例 #1
0
        public void FormatBeginRequestReturnsNonEmptyString()
        {
            HttpRequest httpRequest = CommonTestHelpers.Factory.CreateHttpRequest();

            var    formatter = new TextFormatter();
            string result    = formatter.FormatBeginRequest(httpRequest);

            Assert.IsFalse(string.IsNullOrWhiteSpace(result));
        }
コード例 #2
0
        public void FormatBeginRequestThrowsExceptionForNullHttpRequest()
        {
            var formatter = new TextFormatter();

            formatter.FormatBeginRequest(null);
        }