LINQ and ArcObjects
Explores using LINQ with ArcObjects by exposing ArcGIS features as IEnumerable<IFeature>, including deferred execution, feature cursors, recycling considerations, custom enumerators, unit testing, and performance trade-offs.
Browse by term
Explores using LINQ with ArcObjects by exposing ArcGIS features as IEnumerable<IFeature>, including deferred execution, feature cursors, recycling considerations, custom enumerators, unit testing, and performance trade-offs.
Shows how to restore Debug.WriteLine output in DbgView when running xUnit tests by adding a DefaultTraceListener.
How to use InternalsVisibleTo with strong-named .NET assemblies, including signing the test assembly and specifying the full public key instead of the public key token.
How to set up xUnit with Visual Studio and ReSharper, including local xUnit references, the xUnit Contrib ReSharper plugin, external annotations, and Live Templates.
A note on applying the Perform Runtime Contract Checking option: application runs pick up the changed setting on restart, while unit tests require an explicit rebuild
How to fix an ArcObjects COMException when accessing MapDocument.Thumbnail from a background thread by explicitly setting the new thread's apartment state to STA.
Key characteristics of good unit tests: fast, independent, isolated, repeatable, self-validating, small, transparent, and written at the right time.
How to automate NUnit tests with consistent naming, a Windows batch runner, test categories, XML result files, and Hudson CI test reporting.
How to fix NUnit assembly loading errors caused by test assemblies located outside the NUnit project's application base, diagnosed with Fusion Log Viewer.