コード例 #1
0
        public void GetStaticType()
        {
            var sut = new ScopedNameResolver();

            sut.Register(
                "a",
                new Query
            {
                type = Type("T")
            });
            var actual   = sut.GetStaticType("a");
            var expected = Type("T");

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void GetStaticType_Undefined()
        {
            var sut = new ScopedNameResolver();

            sut.GetStaticType("a");
        }