public void Constructor_FromDataset_SopInstanceUidMaintained() { var expected = DicomUID.Generate(); var presentationLut = new PresentationLut(expected, new DicomDataset()); var actual = presentationLut.SopInstanceUid; Assert.Equal(expected, actual); }
public void LutExplanation_Getter_ReturnsSetValue(PresentationLut presentationLut) { const string expected = "Explanation"; presentationLut.LutExplanation = expected; var actual = presentationLut.LutExplanation; Assert.Equal(expected, actual); }
public void Constructor_WithNullSopInstanceUid_GetterReturnsNonNull(PresentationLut presentationLut) { var actual = presentationLut.SopInstanceUid; Assert.NotNull(actual); }
public void LutData_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut) { var exception = Record.Exception(() => presentationLut.LutData = new ushort[] { 1, 2, 3, 4 }); Assert.Null(exception); }
public void LutExplanation_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut) { var exception = Record.Exception(() => presentationLut.LutExplanation = "Some dummy explanation"); Assert.Null(exception); }
public void LutDescriptor_InitialObject_SetterDoesNotThrow(PresentationLut presentationLut) { var exception = Record.Exception(() => presentationLut.LutDescriptor = new ushort[] { 10, 0, 12 }); Assert.Null(exception); }
public void LutData_InitialObject_IsEmpty(PresentationLut presentationLut) { Assert.Empty(presentationLut.LutData); }
public void LutDescriptor_InitialObject_IsEmpty(PresentationLut presentationLut) { Assert.Empty(presentationLut.LutDescriptor); }
public void LutSequence_InitialObject_IsAlwaysDefined(PresentationLut presentationLut) { Assert.NotNull(presentationLut.LutSequence); }