internal void TestLookupNothing(int tindex) { var t = GenerateAType(tindex); var target = new QVResultOperators(); var r = target.FindScalarROProcessor(t); Assert.IsNull(r); }
internal void TestLookupTwice(int tindex) { var t = GenerateAType(tindex); MEFUtilities.AddPart(new DummyRO()); var target = new QVResultOperators(); MEFUtilities.Compose(target); var result1 = target.FindScalarROProcessor(t); var result2 = target.FindScalarROProcessor(t); Assert.AreEqual(result1, result2, "Expected the same result when called with the same inputs!"); }
internal void TestLookup(int tindex) { var t = GenerateAType(tindex); var dummy = new DummyRO(); MEFUtilities.AddPart(dummy); var target = new QVResultOperators(); MEFUtilities.Compose(target); var result = target.FindScalarROProcessor(t); if (t == typeof(DummyRO)) { Assert.AreEqual(dummy, result, "expected to get back the right object"); } else { Assert.IsNull(result, "Expected no found guy to come back!"); } }
internal QVResultOperators Constructor() { QVResultOperators target = new QVResultOperators(); return target; }
internal QVResultOperators Constructor() { QVResultOperators target = new QVResultOperators(); return(target); }