public void AcceptApplicationInfo_WhenNotRequested_ApplicationInfoIsNotSet() { var negotiation = new DicomExtendedNegotiation(DicomUID.Verification, (DicomServiceApplicationInfo) null); negotiation.AcceptApplicationInfo(new DicomCFindApplicationInfo(DicomCFindOption.DateTimeMatching | DicomCFindOption.FuzzySemanticMatching)); Assert.Null(negotiation.RequestedApplicationInfo); Assert.Null(negotiation.AcceptedApplicationInfo); }
public void AcceptApplicationInfo_WhenRequested_ApplicationInfoIsSetAsExpected(byte[] requested, byte[] accepted, byte[] expected) { var requestedApplicationInfo = new DicomServiceApplicationInfo(requested); var acceptedApplicationInfo = new DicomServiceApplicationInfo(accepted); var expectedApplicationInfo = new DicomServiceApplicationInfo(expected); var negotiation = new DicomExtendedNegotiation(DicomUID.Verification, requestedApplicationInfo); negotiation.AcceptApplicationInfo(acceptedApplicationInfo); Assert.Equal(requestedApplicationInfo, negotiation.RequestedApplicationInfo); Assert.Equal(expectedApplicationInfo, negotiation.AcceptedApplicationInfo); }