Beispiel #1
0
        public void GetCustomVariable_WhenVariableNotSet_ReturnsNull(Scopes variableScope, int variableId)
        {
            //Arrange, Act
            var actual = _sut.GetCustomVariable(variableId, variableScope);

            //Assert
            Assert.That(actual, Is.Null);
        }
Beispiel #2
0
        public void GetCustomVariable_Test(Scopes variableScope, int?variableId, string variableName, string variableValue)
        {
            //Arrange
            var sut = new PiwikTracker(SiteId, PiwikBaseUrl);

            if (variableId != null)
            {
                sut.SetCustomVariable(variableId.Value, variableName, variableValue, variableScope);
            }
            //Act
            var actual = sut.GetCustomVariable(variableId ?? 99, variableScope);
        }