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); }
public void TestJoinSimple() { string joined = ScopeUtils.Join( new List <string> { "a", "b", "c" }); Assert.AreEqual("a b c", joined); }
private void AddScopeQueryParam(QueryParameterBuilder builder) { builder.AddQueryPair("scope", ScopeUtils.Join(_authenticationParameters.RequestedScopes)); }
public void TestJoinEmpty() { string joined = ScopeUtils.Join(new List <string>()); Assert.AreEqual(string.Empty, joined); }