Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. July 2010 Entries
VS2010 debugger catching AssertFailedException instead of running and failing tests
When workig on a project in VS2010 and performing a "run tests in context" the debugger was catching and halting on a test that fails, raising the exception AssertFailedException. I thought this was strange as the same test (in fact any test) that failed in VS2008 would simply just be noted in the test results as Failed... Turns out it's the way I've been running tests.. Both VS2008 and VS2010 have the same shortcut mappings: - "ctrl-r, t" for "Run tests in context" - "ctrl-r, ctrl-t" for "Debug ......

Posted On Wednesday, July 28, 2010 9:18 PM

WPF 3D - programmatically adding an image brush
If you are programmatically assigning an image as a DiffuseMaterial to your 3D model, then you need to make sure that you have created TextureCoordinates. I was using some sample code that created a 3D object - and tried to change the brush from a color to an image. The color worked fine, but the image never showed (it was invisible). The reason was that the sample code only did mesh.Positions.Add() and mesh.TriangleIndicies.Add(). When I added the appropriate mesh.TextureCoordinates.Add() lines ......

Posted On Saturday, July 24, 2010 6:39 AM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net