/
DicomNEventReportResponseTest.cs
40 lines (33 loc) · 1.26 KB
/
DicomNEventReportResponseTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2012-2017 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
namespace Dicom.Network
{
using Xunit;
public class DicomNEventReportResponseTest
{
#region Unit tests
[Fact]
public void EventTypeIDGetter_ResponseCreatedFromRequest_DoesNotThrow()
{
var request = new DicomNEventReportRequest(
DicomUID.BasicFilmSessionSOPClass,
new DicomUID("1.2.3", null, DicomUidType.SOPInstance),
1);
var response = new DicomNEventReportResponse(request, DicomStatus.Success);
var exception = Record.Exception(() => response.EventTypeID);
Assert.Null(exception);
}
[Fact]
public void SOPInstanceUIDGetter_ResponseCreatedFromRequest_DoesNotThrow()
{
var request = new DicomNEventReportRequest(
DicomUID.BasicFilmSessionSOPClass,
new DicomUID("1.2.3", null, DicomUidType.SOPInstance),
1);
var response = new DicomNEventReportResponse(request, DicomStatus.Success);
var exception = Record.Exception(() => response.SOPInstanceUID);
Assert.Null(exception);
}
#endregion
}
}