Beispiel #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());
        }
Beispiel #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);
        }
Beispiel #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());
        }
Beispiel #4
0
        public void TestInspectStringMultipleRules_QuasimodoRule()
        {
            string testData = "patient: Quasimodo";
            var    response = InspectStringMultipleRules.Inspect(Fixture.ProjectId, testData);

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