예제 #1
0
        public void TestJoinComplex()
        {
            string joined = ScopeUtils.Join(
                new List <string>
            {
                "scope1",
                "r2/scope2",
                "https://foo.com/.default"
            });

            Assert.AreEqual("scope1 r2/scope2 https://foo.com/.default", joined);
        }
예제 #2
0
        public void TestJoinSimple()
        {
            string joined = ScopeUtils.Join(
                new List <string>
            {
                "a",
                "b",
                "c"
            });

            Assert.AreEqual("a b c", joined);
        }
예제 #3
0
 private void AddScopeQueryParam(QueryParameterBuilder builder)
 {
     builder.AddQueryPair("scope", ScopeUtils.Join(_authenticationParameters.RequestedScopes));
 }
예제 #4
0
        public void TestJoinEmpty()
        {
            string joined = ScopeUtils.Join(new List <string>());

            Assert.AreEqual(string.Empty, joined);
        }