Пример #1
0
        public void SqlScope_GetTest()
        {
            var sut = new SqlScope();

            sut.Add(SqlName.Parse("a", ObjectLevel.Unknown), "42");
            Assert.Equal("42", sut.ResolveObject(SqlName.Parse("a", ObjectLevel.Unknown), null));
        }
Пример #2
0
        public void SqlScope_ResolveTest()
        {
            var sut = new SqlScope(null);
            var a   = sut.CreateChildScope();

            sut.Add(SqlName.Parse("a", ObjectLevel.Unknown), "42");
            Assert.Equal("42", a.ResolveObject(SqlName.Parse("a", ObjectLevel.Local), null));
        }