Ejemplo n.º 1
0
 public void TestMessageResolverWrongArgs()
 {
     var exception = new SdmxNotImplementedException(ExceptionCode.ReferenceErrorUnexpectedResultsCount, "Any");
     SdmxException.SetMessageResolver(new MessageDecoder());
     Assert.AreEqual("Not Implemented - 607 - Unexpected number of results for {0} with arguments {1} expected {2} got {3} ", exception.Message);
 }
Ejemplo n.º 2
0
 public void TestMessageResolverNoArgs()
 {
     var exception = new SdmxNotImplementedException();
     SdmxException.SetMessageResolver(new MessageDecoder());
     Assert.AreEqual("Not Implemented", exception.Message);
 }
Ejemplo n.º 3
0
 public void TestMessageNoArgs()
 {
     var exception = new SdmxNotImplementedException();
     Assert.AreEqual("Not Implemented", exception.Message);
 }
Ejemplo n.º 4
0
 public void TestMessageResolver()
 {
     var exception = new SdmxNotImplementedException(ExceptionCode.Unsupported, "Any");
     SdmxException.SetMessageResolver(new MessageDecoder());
     Assert.AreEqual("Not Implemented - Unsupported Any", exception.Message);
 }
Ejemplo n.º 5
0
 public void TestMessage()
 {
     var exception = new SdmxNotImplementedException(ExceptionCode.Unsupported, "Any");
     Assert.AreEqual("Not Implemented - 405", exception.Message);
 }