public void GetAsLongVariableExistsReturnVariable() { string variableName = "variableName"; string value = "123"; A.CallTo(() => _environment.GetEnvironmentalVariable(variableName)).Returns(value); double variable = _environmentVariables.GetAsLong(variableName); Assert.That(variable, Is.EqualTo(123)); }