One of the things I like with MbUnit is the parameterized test methods with RowTestAttribute . This gives you the ability to write just a single test case to test a method with parameters. As I was coding my formula parser i bumped into a limitation on .NET's attributes where you cannot supply a decimal...
Do you have any idea why the following test case fails? Imports NUnit.Framework <TestFixture()> _ Public Class ArrayTests <Test()> _ Public Sub ArraySize() Dim myArray(5) As Integer Assert.AreEqual(5, myArray.Length) End Sub End Class The reason is one of the differences between vb.net and...
My current project uses a double data type for its values and i have raised a suggestion to convert it to decimal data type instead. I remember that it is recommended to use decimal over double for financial applications because decimal data types have greater significant digits compared to floating...
Whenever you want to format a currency, date, etc. for your application, try to avoid hardcoding your custom format's in your BoundColumn's DataFormatString, ToString format parameter, etc. More often that not, you'd want those formats to be the same application-wide so, try to configure a custom CultureInfo...
my current requirement is to support a formula parser for our application. although it supports just a subset of the common MS Excel functions, what's trivial for me is the support for grouping symbols. we had a similar requirement back in college in parsing mathematical expressions but we ended up not...
i noticed yesterday that my double quote key is switched with the @ key in visual studio. i tried it in notepad and it seems to be working. i'm glad i found a helpful post in the msdn forums this morning on how to fix this and it turns out that i have two language settings installed, US and UK, i...
i was laughing the other night when i heard that scott hanselman has some software on its 4th month evaluation period. i have been evaluating resharper (hahaha) i think for the nth time (poor me). it was the reason why i got frustrated when yahoo mail now requires credit cards for signing up.
Frans Bouma linked to "The 7 Deadly Sins of Software Development" blog post of Jon Skeet. His website at http://www.yoda.arachsys.com/csharp was one of my resources when learning C# a year ago and once in a while, i encounter a thread with him in usenet (usually under c#) about performance (you'll find...
For the past years of my career as a .NET developer, i can hardly remember that i used interfaces as parameters or return types from my business objects. DAL interfaces are out of this context since you want your DAL methods to be generic for whatever datasource. For those two years, I am really a fan...
Found this interesting analogy for the .NET framework: http://ftponline.com/weblogger/forum.aspx?ID=18&DATE=12/14/2005 Many people are intimidated by .NET. To explain why, I've been using a metaphor. For a developer doing routine work, I think figuring out how to make the .NET Framework do something...