コード例 #1
0
        public void GivenAnonymizerTagRule_WhenHandleTheRule_IfRuleIsNotSupportedOnItem_ExceptionWillBeThrown()
        {
            var newRule = new AnonymizerTagRule(DicomTag.PatientName, "perturb", "description", new DicomProcessorFactory(), JObject.Parse("{}"));
            var context = new ProcessContext();

            Assert.Throws <AnonymizerOperationException>(() => newRule.Handle(Dataset, context));
        }