Пример #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);
        }
Пример #2
0
        public void LutExplanation_Getter_ReturnsSetValue(PresentationLut presentationLut)
        {
            const string expected = "Explanation";

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

            Assert.Equal(expected, actual);
        }
Пример #3
0
        public void Constructor_WithNullSopInstanceUid_GetterReturnsNonNull(PresentationLut presentationLut)
        {
            var actual = presentationLut.SopInstanceUid;

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

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

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

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