dSpec - BDD for Delphi
April 20th, 2007
Released under the Mozilla Public License 1.0 (MPL).
This release adds specifiers for Interfaces: Support() and ImplementedBy().
Specify.That(MyIntfList).Should.Support(IInterfaceList);
Specify.That(MyIntfList).Should.Be.ImplementedBy(TInterfaceList);
See the specs in the specification folder for the full list functionality.
Have fun!
support for delphi 6 ?
dSpecSpecifications.dpr build with delphi 6 and run.
click to run selected test.
access violatin at adres ……
I’m afraid I don’t have a copy of Delphi 6. Can you track down where the A/V occurs?
http://img186.imageshack.us/img186/5440/errorsry2.jpg
procedure TContextBehavior.ShouldAllowMultipleSpecifiers;
var
TheNumber: Integer;
begin
TheNumber := 3;
Specify.That(TheNumber).Should.Equal(3).And_.Not_.Equal(2).And_.Not_.Equal(4); // 5 is right out!
end;
break point on “Specify.That(TheNumber)….”
f7
f7
f7
f7
…
…
…
destructor TFailureReportingObject.Destroy;
begin
FCallerAddress := nil;
FContext := nil;
inherited Destroy; //–> access violatin
end;
Hi Toby, I'll look into it. I'm travel this week and next so I can't guarentee how quickly I can get a solution. I'll do my best. Thanks for commenting on this.
I use dSpec this version, and use "ReportMemoryLeaksOnShutdown := True".
Then, some memory leaks appeared.
When UnitTest finished, following dialog are appeared.
—————————
Unexpected Memory Leak
—————————
An unexpected memory leak has occurred. The unexpected small block leaks are:
1 - 12 bytes: TSpecify x 1
13 - 20 bytes: TList x 1
21 - 28 bytes: TBaseAutoDoc x 1, TFailureList x 1
29 - 36 bytes: String x 1
109 - 116 bytes: MyPointSpec x 1
—————————
OK
—————————
I researched this bugs, and I ascertained that some circular reference of interface maked trouble.
In particular, Troubles are maked by TContext.FSpecify and TContext.FAutoDoc.
TContext instance is interface, however TSpecify and TBaseAutoDoc have IContext.
They are circular reference of interface.
Some field of TContext,like FSpecify and FAutoDoc, can not have IContext.
(to be continued )
I tried to fix it, and fixed one.
TContext.FSpecify deleted and ISpecify was defined.
And a property of TContext.Specify changed to "function TContext.Specify: ISpecify".
So, in TContext.Specify, TSpecify created every calling.
Like following…
function TContext.Specify: ISpecify;
begin
Result := TSpecify.Create(Self);
end;
However I could not fix about TContext.FAutoDoc!
Please help me…
About my environment:
-Windows XP SP3
-BDS 2006(Delphi 2006)
A great constructive article will help to understand the issue.
your favourite Documents, Picture, Video, Achive, Music here
Nice blog. I will keep visiting this blog very often.
If you want to buy a house, you will have to get the personal loans. Furthermore, my mother usually uses a financial loan, which occurs to be really rapid.
Good way to have a success is to get the superb original custom essay or data just about this post, or just get know about contact us selecting the custom essays writing corporation.
Good way to have a success is to get the superb original custom essay
Any course you resolve upon, there is always somebody to tell you that you are faulty. There are ever difficulties come up which lure you to consider that your critics are veracious . But our service will help you at anywhen to write your article. I recommend youdissertation writing that will assist you in your university life. We will assist you to stand up and become a useful classman!
When students buy an essay and find pre written essays about this good post, that will be possible to get good quality.
I know that that’s important to get know about this topic. Buy custom essay papers at the paper writing services about this topic, because this is really important text.
it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity!
very cool post
it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity!
I found your website perfect for my needs. It contains wonderful and helpful posts. I have read most of them and got a lot from them.
I love your blog. Maybe you could let me know how I can subscribing with it?
great post … this all goes trough my mind and could not agree more .
I was simply browsing for relevant blog articles intended for my project research and My partner and i happened to stumble on yours. Many thanks for this helpful material!