RumSchubser
New member
Hi there,
here's my very first post...
I've got a class called InterpolatingDictionary. I won't bother you with all the glory details. Here's what bothers me:
Internally, the dictionary actually contains a List<Tuple<T1, T2>> which is then used as kind of a looktup table.
So I did write my unit tests, and wtf?! Assert.IsInstanceOfType<InterpolatingDictionary<float, float>>(idict.GetType()) results in an assertion saying that the actual instance is of type System.RuntimeType. Within the unit test there's a method that will create such a List<Tuple<float, float>> that then will be handed to the constructor of the InterpolatingDictionary. Within the constructor the items are visible. Back in the test class, count is 0.
Yeah, I guess there's a lot of information missing, but ask if you feel like wanting to help. I don't want to spam this very first post of mine with like tons of lines of code without being asked to do so.
here's my very first post...
I've got a class called InterpolatingDictionary. I won't bother you with all the glory details. Here's what bothers me:
Internally, the dictionary actually contains a List<Tuple<T1, T2>> which is then used as kind of a looktup table.
So I did write my unit tests, and wtf?! Assert.IsInstanceOfType<InterpolatingDictionary<float, float>>(idict.GetType()) results in an assertion saying that the actual instance is of type System.RuntimeType. Within the unit test there's a method that will create such a List<Tuple<float, float>> that then will be handed to the constructor of the InterpolatingDictionary. Within the constructor the items are visible. Back in the test class, count is 0.
Yeah, I guess there's a lot of information missing, but ask if you feel like wanting to help. I don't want to spam this very first post of mine with like tons of lines of code without being asked to do so.