dSpec update
Grab the code here: dSpec.rar
What’s new?
First, some semantics. In the last iteration you said:
ShouldEqual()
ShouldNotEqual()
Now you say:
Should.Equal()
Should.Not_.Equal()
You can use “Not_” on any specifier. Additionally you can now say:
Should.Be.GreaterThan().And_.Be.LessThan()
You can string together specifiers using “And_”.
I’ve added some new specifiers:
GreaterThan()
LessThan()
AtLeast()
AtMost()
Nil_()
Assigned()
DecendFrom()
OfType()
True()
False()
Also, all specifiers can be modified where before only ShouldEqual() could be modified.Some examples of some wild specs:
TheNumber := 3;
Specify.That(TheNumber).Should.Equal(3).And_.Not_.Equal(2).And_.Not_.Equal(4); // 5 is right out!Specify.That(False).Should.Not_.Be.True.And_.Be.False.And_.Not_.Be.True;
Specify.That(42).Should.Be.AtLeast(40).And_.Not_.Be.GreaterThan(50).And_.Be.LessThan(50);
Have fun!
First off, I like the idea… I also like the general goal of the site.
Are there any plans to support managed versions of Delphi? For me it is important that I try to single source my tests as much as possible, especially given that the VCL isn’t fully single sourced yet.
Also, how committed are you to keeping this open source, if at all? Is this a project that you will eventually check into sourceforge?
Thanks Justin.
I am 100% committed to keeping this open source. Eventually I will check it into sourceforge.
I haven’t had a chance to think about a managed version on the code. I think there should be one. I guess it’s the sort of think I could use help on if anyone were so inclined.
Great series. A bit out of my league, but I’m learning stuff each step of the way. Can’t wait to get to it.
All are so nice! I like that all video and there is really nice cinematography at there.
This was a good read, kinda early in the morning though. Should do some work Laughing lol
Although I can’t agree with all you staded, I must confess I do love your way of writing.
Great post and now I know what to do, thank you! Actually this Blog post helped me a lot. I hope you continue writing about this kind of entry.
I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me.
Funny how no one seems to catch the fact that some local Chambers wish to keep from being blown up by the likes of SIEU thugs that have proven they will beat up opposition minding their own business &/or bite fingers off of them, as they did last year, thus choose not voice their views at times.Like the fraud that called a press conference in DC late 2009 — and were busted by the US Chamber. Hilarious!
Our companies have been members of the local Chamber for many years.
Why is MJ dead set against them? Because their views differ than yours?
Interesting!
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post
Hi! Like im doing this research paper on legalizing pot. I like info that you have given! Thank you!
Happy to see your blog as it is just what I’ve looking for and excited to read all the posts.
I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!
I suggest this site to my friends so it could be useful & informative for them also. Great effort.