Example #1
0
		public void TestAttributesEqual()
		{
			DicomAttributeEmptyNullTestSuite test = new DicomAttributeEmptyNullTestSuite();
			test.TestAttributesEqual();
		}
Example #2
0
		public void DicomAttributeSetWhenNullTest()
		{
			DicomAttributeEmptyNullTestSuite test = new DicomAttributeEmptyNullTestSuite();
			test.TestSetWhenNull();
		}
Example #3
0
        public void DicomAttributeEmptyTest()
        {
			DicomAttributeEmptyNullTestSuite test = new DicomAttributeEmptyNullTestSuite();
			test.TestEmpty();
		}
Example #4
0
		public void DicomAttributeNotEmptyOrNullTest() {
			DicomAttributeEmptyNullTestSuite test = new DicomAttributeEmptyNullTestSuite();
			test.TestNotEmptyOrNull();
		}
Example #5
0
		public void TestSetNullValue()
		{
			DicomAttributeEmptyNullTestSuite test = new DicomAttributeEmptyNullTestSuite();
			test.TestSetNull();

			DicomFile file = new DicomFile();
			base.SetupMultiframeXA(file.DataSet, 16, 16, 3);
			base.SetupMetaInfo(file);

			Assert.IsFalse(file.DataSet[DicomTags.PixelData].IsNull);
			file.DataSet[DicomTags.PixelData].SetNullValue();
			Assert.IsTrue(file.DataSet[DicomTags.PixelData].IsNull);
			Assert.AreEqual(file.DataSet[DicomTags.PixelData].StreamLength, 0);
		}