public void ShouldCreateWithTitledAndValueAndNavigationFunction(string expectedString, string functionName, object[] functionParams) { var memberFunction = new MdxNavigationFunction().Titled(functionName).WithParameters(functionParams.Select(Mdx.ConstantValue).ToArray()); var member = new MdxMember().Titled("Dimension", "Attribute").WithValue("1").WithFunction(memberFunction); member.ToString().Should().Be(expectedString); }
public void ShouldCreateWithTitledAndValue() { const string expectedString = "[Dimension].[Attribute].&[1]"; var member = new MdxMember().Titled("Dimension", "Attribute").WithValue("1"); member.ToString().Should().Be(expectedString); }