Exemplo n.º 1
0
        public void OrMultipleLines_4_1()
        {
            BDataSet bDataSet1 = BooleanExpressionDataSet.ContainsAttribute("0x00500050");
            BDataSet bDataSet2 = BooleanExpressionDataSet.ContainsAttribute("0x00600060");

            Assert.That((bDataSet1 | bDataSet2).Evaluate(this.dataSet2), Is.False);
        }
Exemplo n.º 2
0
        public void DataSetCollectionEvaluate_1_1()
        {
            //
            // SetUp the test data for this test case.
            //

            DicomMessageCollection dicomMessageCollection = new DicomMessageCollection();

            DicomMessage dicomMessage1 = new DicomMessage(DimseCommand.CSTORERQ);

            dicomMessage1.DataSet.Set("0x00200020", VR.LT, "Long text value");
            dicomMessageCollection.Add(dicomMessage1);

            DicomMessage dicomMessage2 = new DicomMessage(DimseCommand.CSTORERQ);

            dicomMessage2.DataSet.Set("0x00300030", VR.LT, "Long text value");
            dicomMessageCollection.Add(dicomMessage2);


            //
            // Perform the actual test.
            //

            DataSetCollection dataSetCollection = BooleanExpressionDataSet.ContainsAttribute("0x00200020").Evaluate(dicomMessageCollection.DataSets);

            Assert.That(dataSetCollection.Count, Is.EqualTo(1));
        }
Exemplo n.º 3
0
        public void OrMultipleLines_3_1()
        {
            BDataSet booleanExpressionDataSet1 = BooleanExpressionDataSet.ContainsAttribute("0x00300030");
            BDataSet booleanExpressionDataSet2 = BooleanExpressionDataSet.ContainsAttribute("0x00400040");

            Assert.That((booleanExpressionDataSet1 | booleanExpressionDataSet2).Evaluate(this.dataSet2), Is.True);
        }
Exemplo n.º 4
0
 public void And_4_1()
 {
     Assert.That(((BooleanExpressionDataSet.ContainsAttribute("0x00500050")) & (BooleanExpressionDataSet.ContainsAttribute("0x00600060"))).Evaluate(this.dataSet2), Is.False);
 }
Exemplo n.º 5
0
 public void And_3_1()
 {
     Assert.That(((BooleanExpressionDataSet.ContainsAttribute("0x00300030")) & (BooleanExpressionDataSet.ContainsAttribute("0x00400040")) & (BooleanExpressionDataSet.ContainsAttribute("0x00400040"))).Evaluate(this.dataSet2), Is.True);
 }
Exemplo n.º 6
0
 public void Not_2_1()
 {
     Assert.That((!BooleanExpressionDataSet.ContainsAttribute("0x00300030")).Evaluate(this.dataSet1), Is.True);
 }
Exemplo n.º 7
0
 public void ContainsAttribute_2_1()
 {
     Assert.That(BooleanExpressionDataSet.ContainsAttribute("0x00300030").Evaluate(this.dataSet1), Is.False);
 }