Beispiel #1
0
        public void write_cookie()
        {
            var cookie = new Cookie("something", "else");

            ClassUnderTest.AppendCookie(cookie);

            logs.DebugMessages.Single().ShouldEqual(new WriteCookieReport(cookie));
        }
Beispiel #2
0
        public void write_cookie()
        {
            var cookie = new HttpCookie("Some Cookie");

            ClassUnderTest
            .AppendCookie(cookie);

            MockFor <IHttpWriter>()
            .AssertWasCalled(w => w.AppendCookie(cookie));
        }