I have kind of abandoned this blog for a while. Now I have some time and as I came over this Live Writer tool, I decided to try it out. I’m especially interested how easy it is to post source code using the wysiwyg features, because this gave me a hard time with the the build in web editor. So here is some code that was written in the editor:
int[] i = int[]{ 0, 1, 2 };
Algorithm. RandomShuffle(i.Begin(), i.End());
class AClass : BClass, ISomeInterface
{
void AMethod(){}
}
Ok, it works. But How does it look? And here is some copy/paste code from Visual Studio:
using NUnit.Framework;
using TenPin.Bowling.Shared.Scorecard.Imp;
using NUnit.Framework.SyntaxHelpers;
namespace TenPin.Bowling.Shared.Scorecard.Test
{
[TestFixture,
Description("Basic test for the NullFrame class.")]
public class NullFrameFixture
{
[Test]
public void Ctor()
{
NullFrame frame = new NullFrame();
Assert.That(frame.NextThrow, Is.EqualTo(0));
Assert.That(frame.NextButOneThrow,
Is.EqualTo(0));
Assert.That(frame.Score, Is.EqualTo(0));
}
}
}
Ok, so lets publish it!
Now I’m trying if I can edit the entry after posting. The Posted stuff looks great!
No comments:
Post a Comment