What steps will reproduce the problem? 1. Using r498 2. Run test: [Test] public void Repository_Simple_Select() { Product p = DB.Get<Product>(1); Assert.IsTrue(p.ProductName == "Chai"); }
- FAILS: TestCase 'M:SubSonic.Tests.Repository.RepositoryTests.Repository_Simple_Select' failed: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. D:\Programming\Projects\SubsonicTest\SubSonic\Sql Tools\SubSonicRepository.cs(84,0): at SubSonic.SubSonicRepository.Get[T](Object primaryKeyValue) at NorthwindRepository.DB.Get[T](Object primaryKeyValue) at SubSonic.Tests.Repository.RepositoryTests.Repository_Simple_Select()
What is the expected output? What do you see instead? Expected it to work, latest change broke this
Regards DotnetShadow
What version of the product are you using? On what operating system?
Northwind Unit Test to verify the problem:
Comment #1
Posted on Apr 8, 2009 by Helpful RhinoI think this is related to r495 since DB.Get was updated there. I'll try to track it down if Rob doesn't beat me to it.
Comment #2
Posted on Apr 8, 2009 by Happy Dogsorry guys - ran the wrong tests :(
Status: Fixed
Labels:
Type-Defect
Priority-Medium