public void TestEmptyParameters() { var parameter = new QueryStringParameter("param", string.Empty); var parameter2 = new QueryStringParameter(string.Empty, "param"); Assert.AreEqual(string.Empty, parameter.ToString()); Assert.AreEqual(string.Empty, parameter2.ToString()); Assert.AreEqual(parameter.ToString(), parameter2.ToString()); }
public void TestEnumerablesBrackets() { var parameter = new QueryStringParameter("param", new[] { "test1", "test2" }, true); var result = parameter.ToString(); Assert.AreEqual("param=[test1,test2]", result); }
public void TestEnumBrackets() { var parameter = new QueryStringParameter("param", Synology.Tests.TestEnum.Test1 | Synology.Tests.TestEnum.Test2, true); var result = parameter.ToString(); Assert.AreEqual("param=[test1,test2]", result); }
public void TestEnum() { var parameter = new QueryStringParameter("param", Synology.Tests.TestEnum.Test1 | Synology.Tests.TestEnum.Test2); var result = parameter.ToString(); Assert.AreEqual("param=test1,test2", result); }