287 reputation
112
bio website
location
age
visits member for 3 years, 4 months
seen 12 hours ago

Oct
3
comment Should an ASP.NET MVC application directly use Entity Framework as the model?
If you were using code-first, then there wasn't an existing database, no?
Sep
9
accepted Understanding C# Delegates Structure
Sep
9
comment Understanding C# Delegates Structure
@FrustratedWithFormsDesigner: Updated my question.
Sep
9
revised Understanding C# Delegates Structure
clarification
Sep
9
comment Understanding C# Delegates Structure
I understand how to use it. It was just confusing to me that a delegate is described as an object which accepts methods it can invoke and as an object which wraps a method.
Sep
9
comment Understanding C# Delegates Structure
For example it wouldn't have methods such as Invoke.
Sep
9
asked Understanding C# Delegates Structure
Sep
4
revised Correct Seam for Stub
typo
Sep
3
accepted State Change Tests
Sep
3
comment State Change Tests
I hear your point re not testing for change of state but rather for correct state. In that case though, the test's name should probably be something like IsValidLogFileName_WhenCalled_WasLastFileNameValidIsCorrect.
Sep
3
comment State Change Tests
Yea, the author is presumably just using this as an example.
Sep
3
asked State Change Tests
Aug
12
comment Unit testing newbie team needs to unit test
Wouldn't writing a unit test for an existing bug wind up being a lousy unit test, i.e it would test a whole bunch of stuff rather than a single unit? Wouldn't an integration test be more suitable for this scenario?
Jul
28
comment JavaScript Combination Inheritance Pattern
Ah, I see. Indeed, your alternative is obviously more correct than mine, and it's good to know that it's a "common idiom". Turn your comments into an answer and I'll accept it.
Jul
28
comment JavaScript Combination Inheritance Pattern
@elclanrs: not really; that wouldn't give the child the parent's state; besides that's an example of prototypal inheritance.
Jul
28
asked JavaScript Combination Inheritance Pattern
Mar
10
comment Correct Seam for Stub
Although your answer provides useful information, it doesn't really address my question: I'm definitely not asking about real-world or even practical approaches; my question was, within the topic of stubs, on the author's choice of seam.
Mar
9
accepted Correct Seam for Stub
Mar
9
comment Correct Seam for Stub
If "the fake extension manager does no logic, but instead takes its cues(?) From the test to know what to return", how do you get to test the validation logic?
Mar
7
comment Correct Seam for Stub
Also, with an ExtensionManager, you end up having to write the validation logic twice: in the actual manager and in the fake manager.