예제 #1
0
        public void AddFieldRefAddsAFieldRefToTheElement()
        {
            var field = Fixture.Create <string>();
            var list  = Fixture.Create <string>();
            var sut   = new Join(list, CG.JoinType.Left);

            sut.AddFieldRef(field, x => { });

            sut.ToString().ShouldBe(string.Format(@"<Join Type=""LEFT"" ListAlias=""{0}""><Eq><FieldRef Name=""{1}"" /></Eq></Join>", list, field));
        }