コード例 #1
0
ファイル: Policy.cs プロジェクト: Ryman/SSPrewalker
        public void MultipleSchemes()
        {
            var policy = new WhiteListDomainPolicy("https://foo.bar", "http://foo.bar");

            Assert.IsTrue(policy.Accept("https://foo.bar/aza"));
            Assert.IsTrue(policy.Accept("http://foo.bar/aza"));
        }
コード例 #2
0
ファイル: Policy.cs プロジェクト: Ryman/SSPrewalker
        public void Subdomain()
        {
            var policy = new WhiteListDomainPolicy("http://qux.foo.bar", "http://foo.bar");

            Assert.IsTrue(policy.Accept("http://qux.foo.bar"));
        }