Exemplo n.º 1
0
        public void SetProperties_NotIgnoreCase_ShouldOk()
        {
            var includeProperties = IncludeProperties.Create(false).SetProperties(true, "A", "b");

            includeProperties.Properties.Log();
            includeProperties.HasProperty("A").ShouldTrue();
            includeProperties.HasProperty("B").ShouldFalse();
            includeProperties.HasProperty("C").ShouldFalse();
        }
Exemplo n.º 2
0
        public void Properties_Split_ShouldOk()
        {
            var includeProperties = IncludeProperties.Create(true, '|').SetProperties(true, "A", "b");

            includeProperties.Properties.Log().ShouldEqual("A|b");

            var includeProperties2 = IncludeProperties.Create(true).SetProperties(true, "A", "b");

            includeProperties2.Properties.Log().ShouldEqual("A,b");
        }
Exemplo n.º 3
0
        public void SetProperties_Null_ShouldOk()
        {
            var includeProperties = IncludeProperties.Create().SetProperties(true, "A", "b", "", null);

            includeProperties.Properties.Log().ShouldEqual("A,b");
        }