File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers.Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+ namespace StyleCop . Analyzers . Test . LightJson . Serialization
5+ {
6+ using global ::LightJson . Serialization ;
7+ using Xunit ;
8+
9+ public class JsonParseExceptionTests
10+ {
11+ [ Fact ]
12+ public void TestDefaultConstructor ( )
13+ {
14+ var ex = new JsonParseException ( ) ;
15+ Assert . Equal ( JsonParseException . ErrorType . Unknown , ex . Type ) ;
16+ Assert . False ( string . IsNullOrEmpty ( ex . Message ) ) ;
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+ namespace StyleCop . Analyzers . Test . LightJson . Serialization
5+ {
6+ using global ::LightJson . Serialization ;
7+ using Xunit ;
8+
9+ public class JsonSerializationExceptionTests
10+ {
11+ [ Fact ]
12+ public void TestDefaultConstructor ( )
13+ {
14+ var ex = new JsonSerializationException ( ) ;
15+ Assert . Equal ( JsonSerializationException . ErrorType . Unknown , ex . Type ) ;
16+ Assert . False ( string . IsNullOrEmpty ( ex . Message ) ) ;
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 238238 <Compile Include =" LightJson\JsonArrayTests.cs" />
239239 <Compile Include =" LightJson\JsonObjectTests.cs" />
240240 <Compile Include =" LightJson\JsonValueTests.cs" />
241+ <Compile Include =" LightJson\Serialization\JsonParseExceptionTests.cs" />
241242 <Compile Include =" LightJson\Serialization\JsonReaderTests.cs" />
243+ <Compile Include =" LightJson\Serialization\JsonSerializationExceptionTests.cs" />
242244 <Compile Include =" LightJson\Serialization\JsonWriterTests.cs" />
243245 <Compile Include =" LightJson\Serialization\TextScannerTests.cs" />
244246 <Compile Include =" Lightup\AccessorDeclarationSyntaxExtensionsTests.cs" />
You can’t perform that action at this time.
0 commit comments