コード例 #1
0
 internal void TestLookupNothing(int tindex)
 {
     var t = GenerateAType(tindex);
     var target = new QVResultOperators();
     var r = target.FindScalarROProcessor(t);
     Assert.IsNull(r);
 }
コード例 #2
0
        internal void TestLookupNothing(int tindex)
        {
            var t      = GenerateAType(tindex);
            var target = new QVResultOperators();
            var r      = target.FindScalarROProcessor(t);

            Assert.IsNull(r);
        }
コード例 #3
0
        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!");
        }
コード例 #4
0
        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!");
        }
コード例 #5
0
        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!");
            }
        }
コード例 #6
0
        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!");
            }
        }
コード例 #7
0
 internal QVResultOperators Constructor()
 {
     QVResultOperators target = new QVResultOperators();
     return target;
 }
コード例 #8
0
        internal QVResultOperators Constructor()
        {
            QVResultOperators target = new QVResultOperators();

            return(target);
        }