示例#1
0
        public void TestInspectStringMultipleRules_RedactedRule()
        {
            string testData = "name of patient: REDACTED";
            var    response = InspectStringMultipleRules.Inspect(Fixture.ProjectId, testData);

            Assert.False(response.Result.Findings.Any());
        }
示例#2
0
        public void TestInspectStringMultipleRules_PatientRule()
        {
            string testData = "name of patient: Jane Doe";
            var    response = InspectStringMultipleRules.Inspect(Fixture.ProjectId, testData);

            Assert.Contains(response.Result.Findings, f => f.Likelihood == Likelihood.VeryLikely);
        }
示例#3
0
        public void TestInspectStringMultipleRules_DoctorRule()
        {
            string testData = "name of doctor: Jane Doe";
            var    response = InspectStringMultipleRules.Inspect(Fixture.ProjectId, testData);

            Assert.False(response.Result.Findings.Any());
        }
示例#4
0
        public void TestInspectStringMultipleRules_QuasimodoRule()
        {
            string testData = "patient: Quasimodo";
            var    response = InspectStringMultipleRules.Inspect(Fixture.ProjectId, testData);

            Assert.False(response.Result.Findings.Any());
        }