Beispiel #1
0
        public void GetAsDoubleVariableExistsReturnsVariable()
        {
            string variableName = "variableName";
            string value        = "123";

            A.CallTo(() => _environment.GetEnvironmentalVariable(variableName)).Returns(value);
            double variable = _environmentVariables.GetAsDouble(variableName);

            Assert.That(variable, Is.EqualTo(123));
        }