DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Andrey Titov's picture

Unregistered

Feeds

aliases

  • Andrey Titov

Andrey Titov

1 year ago

in Sins of .NET API Developers on Andrey Shchekin's Blog
I've found another example similar to your #2.
Rhino mock can't create partial mock on non pulic types. So I can't test my BC classes using partial mocking because they are all internal for BL and are accessible outside only with public facade.

1 year ago

in Simple typeswitch in C# 3.0, Part 2: The Solutions on Andrey Shchekin's Blog
Would your switch get confused if it cannot infer the return type from the first case?

string result = Switch.Type(document)
.Case((XsltDocument d) => null)
.Case((XmlDocument d) => “Xml”)
.Otherwise(d => “Not Xml and not Xslt”)
.Result;
Returning? Login