May 23, 2006
Posted in Tools
at 11:10
by Niklas
I was tricker that expected to post C# code in text format using Wordpress 2.0. The first plug-in I tried was Syntax Highlighter 1.2.2. I seemed promising, offering line numbering in addition to coloring. However the formatting applied by the plug-in messed up the post, and after editing the text once to fix that it totally flipped out, presenting the entire post on one line including html tags…
So the search continued, and I found PraColorizer. I still takes some effort to achieve the formatting you want, but it still hasen’t destroyed anything.
And they both lack a good homepage describing how to use them.
Prasad.A’s PraColorizer: http://blogs.applibase.net/prasad/?p=5
Mr .NET Syntax Highlighter 1.2.2: http://www.misterdotnet.com/blog/index.php?cat=14
Permalink
May 18, 2006
Posted in TDD
at 11:44
by Niklas
[TestMethod]
[ExpectedException(typeof(Exception))]
public void ControllerTest_DotNetMock()
{
IMock mock = new DynamicMock(typeof(IDahlexView));
IDahlexView viewMock = (IDahlexView)mock.MockInstance;
mock.Expect(“Clear”);
mock.ExpectAndThrow(“DrawGrid”, new Exception(), 11, 11, 10, 10);
mock.ExpectAndReturn(“DrawBoard”, true, new IsAnything(), 10, 10);
mock.Expect(“ShowStatus”, 1, 1, 1, 2, 0);
BoardDefinition def
= new BoardDefinition(new Size(11, 11), new Size(10, 10));
DahlexController controller
= new DahlexController(viewMock, def, new Options());
controller.StartGame();
mock.Verify();
}
Permalink
May 7, 2006
Posted in Tools
at 18:51
by Niklas
Are you one of those who is looking for ILIDE#, the MSIL Editor, version 3 was released but then the website disappeared, then another came, then it disappeared… in that case you can not download it here: ILIDE_v3
I found it at last, so I figured it a good deed to publish it.
Here is a good post about it by Mital Kakaiya
Permalink