コード例 #1
0
        public void ReturnAUrlHelper_WhenCalledWithANonNullRequestContext()
        {
            var factory   = new UrlHelperFactory();
            var urlHelper = factory.Create(new RequestContext());

            Assert.IsInstanceOf <UrlHelper>(urlHelper);
        }
コード例 #2
0
        public void ThrowAnException_WhenCalledWithANullRequestContext()
        {
            var factory = new UrlHelperFactory();

            Assert.Throws <ArgumentNullException>(() => factory.Create(null));
        }