-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
223fa98
commit 932de39
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Pasper.Json.Tokens; | ||
|
||
namespace Pasper.Json.Tests.Tokens; | ||
|
||
public class CommentTests | ||
{ | ||
[Fact] | ||
public void Value_ShouldBeSlashSlash() | ||
{ | ||
const string expected = "abc"; | ||
var token = new Comment(expected); | ||
Assert.Equal(expected, token.Value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Pasper.Json.Tokens; | ||
|
||
namespace Pasper.Json.Tests.Tokens; | ||
|
||
public class FalseLiteralTests | ||
{ | ||
[Fact] | ||
public void Value_ShouldBeFalse() | ||
{ | ||
const string expected = "false"; | ||
var token = new FalseLiteral(); | ||
Assert.Equal(expected, token.Value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Pasper.Json.Tokens; | ||
|
||
namespace Pasper.Json.Tests.Tokens; | ||
|
||
public class NullLiteralTests | ||
{ | ||
[Fact] | ||
public void Value_ShouldBeNull() | ||
{ | ||
const string expected = "null"; | ||
var token = new NullLiteral(); | ||
Assert.Equal(expected, token.Value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Pasper.Json.Tokens; | ||
|
||
namespace Pasper.Json.Tests.Tokens; | ||
|
||
public class NumberLiteralTests | ||
{ | ||
[Fact] | ||
public void Value_ShouldBeNumber() | ||
{ | ||
const string expected = "123"; | ||
var token = new NumberLiteral("123"); | ||
Assert.Equal(expected, token.Value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Pasper.Json.Tokens; | ||
|
||
namespace Pasper.Json.Tests.Tokens; | ||
|
||
public class TrueLiteralTests | ||
{ | ||
[Fact] | ||
public void Value_ShouldBeTrue() | ||
{ | ||
const string expected = "true"; | ||
var token = new TrueLiteral(); | ||
Assert.Equal(expected, token.Value); | ||
} | ||
} |