OLD | NEW |
1 #region Copyright notice and license | 1 #region Copyright notice and license |
2 // Protocol Buffers - Google's data interchange format | 2 // Protocol Buffers - Google's data interchange format |
3 // Copyright 2015 Google Inc. All rights reserved. | 3 // Copyright 2015 Google Inc. All rights reserved. |
4 // https://developers.google.com/protocol-buffers/ | 4 // https://developers.google.com/protocol-buffers/ |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
8 // met: | 8 // met: |
9 // | 9 // |
10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 [Test] | 714 [Test] |
715 public void CustomDiagnosticMessage_DirectToTextWriterCall() | 715 public void CustomDiagnosticMessage_DirectToTextWriterCall() |
716 { | 716 { |
717 var message = new ForeignMessage { C = 31 }; | 717 var message = new ForeignMessage { C = 31 }; |
718 var writer = new StringWriter(); | 718 var writer = new StringWriter(); |
719 JsonFormatter.Default.Format(message, writer); | 719 JsonFormatter.Default.Format(message, writer); |
720 Assert.AreEqual("{ \"c\": 31 }", writer.ToString()); | 720 Assert.AreEqual("{ \"c\": 31 }", writer.ToString()); |
721 } | 721 } |
722 } | 722 } |
723 } | 723 } |
OLD | NEW |