-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix policheck * use array * update format
- Loading branch information
Showing
2 changed files
with
145 additions
and
121 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
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,23 @@ | ||
using NUnit.Framework; | ||
using Mono.Utilities; | ||
using Monodoc; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MonoTests.Mono.Utilities | ||
{ | ||
[TestFixture] | ||
public class ColorizerTests | ||
{ | ||
[Test] | ||
public void ColorizeTest() | ||
{ | ||
string text = "public int InitialCapacity { get; set; } = 100;"; | ||
string result = Colorizer.Colorize(text, "cs"); | ||
Assert.AreEqual("<font color=\"blue\">public</font> <font color=\"blue\">int</font> InitialCapacity { get; set; } = 100;", result); | ||
} | ||
} | ||
} |