public void ParseError1()
        {
            Int16 parsedTypeCode      = -1;
            Int16 parsedEndpointIndex = -1;

            byte[] parsedSourceIdHash  = new byte[19];
            byte[] parsedMessageHandle = new byte[20];
            string artifact            = string.Empty;

            ArtifactUtil.ParseArtifact(artifact, ref parsedTypeCode, ref parsedEndpointIndex, ref parsedSourceIdHash, ref parsedMessageHandle);
        }
Esempio n. 2
0
            public void ThrowsExceptionWhenArtifactLengthMismatch()
            {
                // Arrange
                short parsedTypeCode      = -1;
                short parsedEndpointIndex = -1;
                var   parsedSourceIdHash  = new byte[20];
                var   parsedMessageHandle = new byte[20];
                var   artifact            = string.Empty;

                // Act
                Assert.Throws <ArgumentException>(() => ArtifactUtil.ParseArtifact(artifact, ref parsedTypeCode, ref parsedEndpointIndex, ref parsedSourceIdHash, ref parsedMessageHandle));
            }