Example #1
0
        public void GetPolicyString_ValidPolicy_ReturnsPolicyString(ReferrerPolicy policy, string expectedPolicy)
        {
            var result = policy.GetPolicyString();

            Assert.Equal(expectedPolicy, result);
        }
Example #2
0
 public void GetPolicyString_InvalidPolicy_Throws(ReferrerPolicy policy)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => policy.GetPolicyString());
 }