Example #1
0
        public void Constructor_FromDataset_SopInstanceUidMaintained()
        {
            var expected        = DicomUID.Generate();
            var presentationLut = new PresentationLut(expected, new DicomDataset());
            var actual          = presentationLut.SopInstanceUid;

            Assert.Equal(expected, actual);
        }
Example #2
0
        public void LutExplanation_Getter_ReturnsSetValue(PresentationLut presentationLut)
        {
            const string expected = "Explanation";

            presentationLut.LutExplanation = expected;
            var actual = presentationLut.LutExplanation;

            Assert.Equal(expected, actual);
        }
Example #3
0
        public void Constructor_WithNullSopInstanceUid_GetterReturnsNonNull(PresentationLut presentationLut)
        {
            var actual = presentationLut.SopInstanceUid;

            Assert.NotNull(actual);
        }
Example #4
0
        public void LutData_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut)
        {
            var exception = Record.Exception(() => presentationLut.LutData = new ushort[] { 1, 2, 3, 4 });

            Assert.Null(exception);
        }
Example #5
0
        public void LutExplanation_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut)
        {
            var exception = Record.Exception(() => presentationLut.LutExplanation = "Some dummy explanation");

            Assert.Null(exception);
        }
Example #6
0
        public void LutDescriptor_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut)
        {
            var exception = Record.Exception(() => presentationLut.LutDescriptor = new ushort[] { 10, 0, 12 });

            Assert.Null(exception);
        }
Example #7
0
 public void LutData_InitialObject_IsEmpty(PresentationLut presentationLut)
 {
     Assert.Empty(presentationLut.LutData);
 }
Example #8
0
 public void LutDescriptor_InitialObject_IsEmpty(PresentationLut presentationLut)
 {
     Assert.Empty(presentationLut.LutDescriptor);
 }
Example #9
0
 public void LutSequence_InitialObject_IsAlwaysDefined(PresentationLut presentationLut)
 {
     Assert.NotNull(presentationLut.LutSequence);
 }