コード例 #1
0
        public void VerifyResult()
        {
            TextAnchorExtractionExample example = new TextAnchorExtractionExample();

            example.Run();

            Document document = example.RetrievedPackage.GetDocument(example.DOCUMENT_NAME);

            foreach (Signature signature in document.Signatures)
            {
                foreach (Field field in signature.Fields)
                {
                    Assert.GreaterOrEqual(field.Width, -maxErrorAfterScaling + (double)(example.FIELD_WIDTH), "Field's width was incorrectly returned.");
                    Assert.LessOrEqual(field.Width, maxErrorAfterScaling + (double)(example.FIELD_WIDTH), "Field's width was incorrectly returned.");
                    Assert.GreaterOrEqual(field.Height, -maxErrorAfterScaling + (double)(example.FIELD_HEIGHT), "Field's height was incorrectly returned.");
                    Assert.LessOrEqual(field.Height, maxErrorAfterScaling + (double)(example.FIELD_HEIGHT), "Field's height was incorrectly returned.");
                }
            }
        }
コード例 #2
0
        public void VerifyResult()
        {
            TextAnchorExtractionExample example = new TextAnchorExtractionExample(Props.GetInstance());

            example.Run();
        }
コード例 #3
0
 public void VerifyResult()
 {
     TextAnchorExtractionExample example = new TextAnchorExtractionExample(Props.GetInstance());
     example.Run();
 }